Skip to content

Commit 42b6ef0

Browse files
committed
Pass exception-reason in logger message
1 parent cb0cd1b commit 42b6ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/plugwise_usb/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ async def async_remove_config_entry_device(
189189
mac = identifier[1]
190190
try:
191191
await api_stick.unregister_node(mac)
192-
except NodeError:
193-
_LOGGER.warning("Plugwise node %s unregistering failed with NodeError", mac)
192+
except NodeError as exc:
193+
_LOGGER.warning(f"Plugwise node %s unregistering failed: {exc}", mac)
194194
return True # Must return True for device_registry removal to happen!
195195

196196
_LOGGER.debug("Plugwise device %s successfully removed", mac)

0 commit comments

Comments
 (0)