Skip to content

Commit

Permalink
Log the deviceurl for all devices (#323)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vlebourl committed Dec 10, 2020
1 parent 70b339c commit 2378a6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion custom_components/tahoma/__init__.py
Expand Up @@ -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:
Expand Down

0 comments on commit 2378a6a

Please sign in to comment.