mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Logging to find what deCONZ events get created (#20551)
* Helpful logging to easily find what events get created
This commit is contained in:
parent
847711ddc9
commit
9251860201
@ -8,7 +8,7 @@ from homeassistant.helpers.dispatcher import (
|
|||||||
from homeassistant.util import slugify
|
from homeassistant.util import slugify
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
DECONZ_REACHABLE, CONF_ALLOW_CLIP_SENSOR, SUPPORTED_PLATFORMS)
|
_LOGGER, DECONZ_REACHABLE, CONF_ALLOW_CLIP_SENSOR, SUPPORTED_PLATFORMS)
|
||||||
|
|
||||||
|
|
||||||
class DeconzGateway:
|
class DeconzGateway:
|
||||||
@ -140,6 +140,7 @@ class DeconzEvent:
|
|||||||
self._device.register_async_callback(self.async_update_callback)
|
self._device.register_async_callback(self.async_update_callback)
|
||||||
self._event = 'deconz_{}'.format(CONF_EVENT)
|
self._event = 'deconz_{}'.format(CONF_EVENT)
|
||||||
self._id = slugify(self._device.name)
|
self._id = slugify(self._device.name)
|
||||||
|
_LOGGER.debug("deCONZ event created: %s", self._id)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_will_remove_from_hass(self) -> None:
|
def async_will_remove_from_hass(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user