Skip to content

Commit 16e852f

Browse files
committed
async_remove_config_entry_device(): take mac from identifiers
1 parent d9c813a commit 16e852f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/plugwise_usb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def async_remove_config_entry_device(
186186
and identifier[1] in (str(api_stick.mac_stick), str(api_stick.mac_coordinator))
187187
)
188188
if removable:
189-
mac = device_entry.serial_number
189+
mac = identifier[1]
190190
try:
191191
await api_stick.unregister_node(mac)
192192
except NodeError:

0 commit comments

Comments
 (0)