Skip to content

Commit 9866171

Browse files
committed
Fix removal logic
1 parent 413271c commit 9866171

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/plugwise_usb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ async def async_remove_config_entry_device(
183183
for identifier in device_entry.identifiers:
184184
if (
185185
identifier[0] == DOMAIN
186-
and (mac := identifier[1] in (str(api_stick.mac_stick), str(api_stick.mac_coordinator)))
186+
and identifier[1] not in (str(api_stick.mac_stick), str(api_stick.mac_coordinator))
187187
):
188+
mac = identifier[1]
188189
removable = True
189190
break
190191

0 commit comments

Comments
 (0)