mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Debug async_added_to_hass async_add_job
This commit is contained in:
@@ -101,5 +101,6 @@ class InsteonPLMBinarySensor(BinarySensorDevice):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(
|
||||
self.hass.async_add_job(
|
||||
self._insteon_device_state.register_updates,
|
||||
self.async_binarysensor_update)
|
||||
|
@@ -142,4 +142,6 @@ class InsteonPLMFan(FanEntity):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_fan_update)
|
||||
self.hass.async_add_job(
|
||||
self._insteon_device_state.register_updates,
|
||||
self.async_fan_update)
|
||||
|
@@ -116,4 +116,6 @@ class InsteonPLMDimmerDevice(Light):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_light_update)
|
||||
self.hass.async_add_job(
|
||||
self._insteon_device_state.register_updates,
|
||||
self.async_light_update)
|
||||
|
@@ -88,4 +88,6 @@ class InsteonPLMSensorDevice(Entity):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_sensor_update)
|
||||
self.hass.async_add_job(
|
||||
self._insteon_device_state.register_updates,
|
||||
self.async_sensor_update)
|
||||
|
@@ -167,4 +167,6 @@ class InsteonPLMOpenClosedDevice(SwitchDevice):
|
||||
"""Register INSTEON update events."""
|
||||
_LOGGER.debug('Device %s added. Now registering callback.',
|
||||
self.address)
|
||||
self._insteon_device_state.register_updates(self.async_relay_update)
|
||||
self.hass.async_add_job(
|
||||
self._insteon_device_state.register_updates,
|
||||
self.async_relay_update)
|
||||
|
Reference in New Issue
Block a user