(self)
Stops the loop if no led is active, starts it otherwise
Stops the loop if no led is active, starts it otherwise
Stops the loop if no led is active starts it otherwise
def consumers_changed(self) -> None:
        """Stops the loop if no led is active, starts it otherwise"""
        if self.disabled_program.consumers == 4:
            self.loop_active.clear()
            redis.set("lights_active", False)
        else:
            self.loop_active.set()
            redis.set("lights_active", True)
def consumers_changed ( self ) -> None : if self . disabled_program . consumers == 4 : self . loop_active . clear ( ) redis . set ( "lights_active" , False ) else : self . loop_active . set ( ) redis . set ( "lights_active" , True )