def __init__(self, plm, address, cat, subcat, product_key=0, description='', model=''): super().__init__(plm, address, cat, subcat, product_key, description, model) self._aldb = ALDB(None, None, self._address, version=ALDBVersion.Null)
def __init__(self, plm, address, cat, subcat, product_key=0, description='', model=''): """Init the GeneralController class.""" super().__init__(plm, address, cat, subcat, product_key, description, model) self._aldb = ALDB(None, None, self._address, version=ALDBVersion.Null)
def __init__( self, plm, address, cat=None, subcat=None, product_key=0x00, description="", model="", ): """Init the UnknownDevice Class.""" super().__init__(plm, address, cat, subcat, product_key, description, model) self._aldb = ALDB(None, None, self._address, version=ALDBVersion.Null)
def _handle_get_plm_info(self, msg): from insteonplm.devices import ALDB _LOGGER.debug('Starting _handle_get_plm_info') from insteonplm.devices.ipdb import IPDB ipdb = IPDB() self._address = msg.address self._cat = msg.category self._subcat = msg.subcategory self._product_key = msg.firmware product = ipdb[[self._cat, self._subcat]] self._description = product.description self._model = product.model self._aldb = ALDB(self._send_msg, self._plm.loop, self._address) _LOGGER.debug('Ending _handle_get_plm_info')