From 2378a6a2578d87f8ff500927b1791e147f70cb12 Mon Sep 17 00:00:00 2001 From: Vincent Le Bourlot Date: Thu, 10 Dec 2020 11:33:30 +0100 Subject: [PATCH] Log the deviceurl for all devices (#323) * Log the deviceurl for all devices Add a log line in debug for added devices. Add the device url to the debug log for added and unsupported devices. * fix style --- custom_components/tahoma/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/custom_components/tahoma/__init__.py b/custom_components/tahoma/__init__.py index 7a6d68618..b81b39cfa 100644 --- a/custom_components/tahoma/__init__.py +++ b/custom_components/tahoma/__init__.py @@ -135,15 +135,23 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): platform = TAHOMA_TYPES.get(device.widget) or TAHOMA_TYPES.get(device.ui_class) if platform: entities[platform].append(device) + _LOGGER.debug( + "Added Device (%s - %s - %s - %s)", + device.controllable_name, + device.ui_class, + device.widget, + device.deviceurl, + ) elif ( device.widget not in IGNORED_TAHOMA_TYPES and device.ui_class not in IGNORED_TAHOMA_TYPES ): _LOGGER.debug( - "Unsupported TaHoma device detected (%s - %s - %s)", + "Unsupported TaHoma device detected (%s - %s - %s - %s)", device.controllable_name, device.ui_class, device.widget, + device.deviceurl, ) if device.widget == HOMEKIT_STACK: