Logging to find what deCONZ events get created (#20551)

* Helpful logging to easily find what events get created
pull/21150/head
Robert Svensson 2019-02-17 16:58:46 +01:00 committed by GitHub
parent 847711ddc9
commit 9251860201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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: