Logging to find what deCONZ events get created (#20551)
* Helpful logging to easily find what events get createdpull/21150/head
parent
847711ddc9
commit
9251860201
|
@ -8,7 +8,7 @@ from homeassistant.helpers.dispatcher import (
|
|||
from homeassistant.util import slugify
|
||||
|
||||
from .const import (
|
||||
DECONZ_REACHABLE, CONF_ALLOW_CLIP_SENSOR, SUPPORTED_PLATFORMS)
|
||||
_LOGGER, DECONZ_REACHABLE, CONF_ALLOW_CLIP_SENSOR, SUPPORTED_PLATFORMS)
|
||||
|
||||
|
||||
class DeconzGateway:
|
||||
|
@ -140,6 +140,7 @@ class DeconzEvent:
|
|||
self._device.register_async_callback(self.async_update_callback)
|
||||
self._event = 'deconz_{}'.format(CONF_EVENT)
|
||||
self._id = slugify(self._device.name)
|
||||
_LOGGER.debug("deCONZ event created: %s", self._id)
|
||||
|
||||
@callback
|
||||
def async_will_remove_from_hass(self) -> None:
|
||||
|
|
Loading…
Reference in New Issue