(self)
Load and activate this device's program from the database.
Load and activate this device's program from the database.
Load and activate this device s program from the database .
def load_program(self) -> None:
        """Load and activate this device's program from the database."""
        program_name = storage.get(f"{self.name}_program")

        # only enable if the device is initialized
        if self.initialized:
            self.program = self.manager.all_programs[program_name]
        else:
            self.program = self.manager.disabled_program

        self.program.use()
def load_program ( self ) -> None : program_name = storage . get ( f"{self.name}_program" ) # only enable if the device is initialized if self . initialized : self . program = self . manager . all_programs [ program_name ] else : self . program = self . manager . disabled_program self . program . use ( )