def is_zone_active(self, zone_name):
        """
        Check if a zone is active
        """
        zone = self.get_zone(zone_name)
        if zone is None:
            raise RuntimeError("Unable to get zone")

        return zone['isCurrentlyActive']
def is_zone_active ( self , zone_name ) : zone = self . get_zone ( zone_name ) if zone is None : raise RuntimeError ( "Unable to get zone" ) return zone [ 'isCurrentlyActive' ]
Check if a zone is active