mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Logging to find what deCONZ events get created (#20551)
* Helpful logging to easily find what events get created
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user