(self, config)
Extract info from config.
Extract info from config.
Extract info from config .
def extract_config_info(self, config):
        """Extract info from config."""
        self.name = config.get("name", "unknown")
        self.camera_id = str(config.get("id", "unknown"))
        self.network_id = str(config.get("network_id", "unknown"))
        self.serial = config.get("serial", None)
        self.motion_enabled = config.get("enabled", "unknown")
        self.battery_voltage = config.get("battery_voltage", None)
        self.battery_state = config.get("battery_state", None)
        self.temperature = config.get("temperature", None)
        self.wifi_strength = config.get("wifi_strength", None)
def extract_config_info ( self , config ) : self . name = config . get ( "name" , "unknown" ) self . camera_id = str ( config . get ( "id" , "unknown" ) ) self . network_id = str ( config . get ( "network_id" , "unknown" ) ) self . serial = config . get ( "serial" , None ) self . motion_enabled = config . get ( "enabled" , "unknown" ) self . battery_voltage = config . get ( "battery_voltage" , None ) self . battery_state = config . get ( "battery_state" , None ) self . temperature = config . get ( "temperature" , None ) self . wifi_strength = config . get ( "wifi_strength" , None )