Debug async_added_to_hass
This commit is contained in:
parent
0453d9fbb6
commit
12c5651fe4
5 changed files with 10 additions and 10 deletions
|
@ -26,8 +26,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
"""Set up the INSTEON PLM device class for the hass platform."""
|
||||
entities = []
|
||||
plm = hass.data['insteon_plm']
|
||||
_LOGGER.debug("Got here binary_sensor")
|
||||
_LOGGER.debug(discovery_info)
|
||||
|
||||
address = discovery_info['address']
|
||||
device = plm.devices[address]
|
||||
|
@ -101,5 +99,7 @@ class InsteonPLMBinarySensor(BinarySensorDevice):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(
|
||||
self.async_binarysensor_update)
|
||||
|
|
|
@ -34,8 +34,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
"""Set up the INSTEON PLM device class for the hass platform."""
|
||||
entities = []
|
||||
plm = hass.data['insteon_plm']
|
||||
_LOGGER.debug("Got here fan")
|
||||
_LOGGER.debug(discovery_info)
|
||||
|
||||
address = discovery_info['address']
|
||||
device = plm.devices[address]
|
||||
|
@ -142,4 +140,6 @@ class InsteonPLMFan(FanEntity):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_fan_update)
|
||||
|
|
|
@ -24,8 +24,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
"""Set up the Insteon PLM device."""
|
||||
entities = []
|
||||
plm = hass.data['insteon_plm']
|
||||
_LOGGER.debug("Got here light")
|
||||
_LOGGER.debug(discovery_info)
|
||||
|
||||
address = discovery_info['address']
|
||||
device = plm.devices[address]
|
||||
|
@ -116,4 +114,6 @@ class InsteonPLMDimmerDevice(Light):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_light_update)
|
||||
|
|
|
@ -21,8 +21,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
"""Set up the INSTEON PLM device class for the hass platform."""
|
||||
entities = []
|
||||
plm = hass.data['insteon_plm']
|
||||
_LOGGER.debug("Got here sensor")
|
||||
_LOGGER.debug(discovery_info)
|
||||
|
||||
address = discovery_info['address']
|
||||
device = plm.devices[address]
|
||||
|
@ -88,4 +86,6 @@ class InsteonPLMSensorDevice(Entity):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_sensor_update)
|
||||
|
|
|
@ -21,8 +21,6 @@ def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
|||
"""Set up the INSTEON PLM device class for the hass platform."""
|
||||
entities = []
|
||||
plm = hass.data['insteon_plm']
|
||||
_LOGGER.debug("Got here switch")
|
||||
_LOGGER.debug(discovery_info)
|
||||
|
||||
address = discovery_info['address']
|
||||
device = plm.devices[address]
|
||||
|
@ -167,4 +165,6 @@ class InsteonPLMOpenClosedDevice(SwitchDevice):
|
|||
@asyncio.coroutine
|
||||
def async_added_to_hass(self):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_relay_update)
|
||||
|
|
Loading…
Add table
Reference in a new issue