From 92518602016c05109e3b6a3696f0988d5a33cd49 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Sun, 17 Feb 2019 16:58:46 +0100 Subject: [PATCH] Logging to find what deCONZ events get created (#20551) * Helpful logging to easily find what events get created --- homeassistant/components/deconz/gateway.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/deconz/gateway.py b/homeassistant/components/deconz/gateway.py index fe9fc4b7752..2b53a0998d0 100644 --- a/homeassistant/components/deconz/gateway.py +++ b/homeassistant/components/deconz/gateway.py @@ -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: