Skip to content

Commit 1b4f1b4

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

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
@@ -183,7 +183,7 @@ 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 (mac := identifier[1] not in (str(api_stick.mac_stick), str(api_stick.mac_coordinator)))
187187
):
188188
removable = True
189189
break

0 commit comments

Comments
 (0)