(self)
Restores the state from before the alarm.
Restores the state from before the alarm.
Restores the state from before the alarm .
def alarm_stopped(self) -> None:
        """Restores the state from before the alarm."""
        self.alarm_program.release()
        self.fixed_color = self.last_fixed_color

        leds.enable_pwr_led()

        # the database still contains the program from before the alarm. restore it.
        for device in [self.ring, self.wled, self.strip]:
            self.set_program(
                device, self.led_programs[storage.get(f"{device.name}_program")]
            )
def alarm_stopped ( self ) -> None : self . alarm_program . release ( ) self . fixed_color = self . last_fixed_color leds . enable_pwr_led ( ) # the database still contains the program from before the alarm. restore it. for device in [ self . ring , self . wled , self . strip ] : self . set_program ( device , self . led_programs [ storage . get ( f"{device.name}_program" ) ] )