Skip to content

Commit 3007cb1

Browse files
committed
Fix
1 parent b84fbf1 commit 3007cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/plugwise/coordinator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ async def _async_remove_devices(self, data: dict[str, GwEntityData]) -> None:
154154
# First find the Plugwise via_device
155155
gateway_device = self.device_registry.async_get_device({(DOMAIN, self.api.gateway_id)})
156156
if gateway_device is None:
157-
_LOGGER.warning("Failed to remove device, gateway reference not found")
157+
LOGGER.warning("Failed to remove device, gateway reference not found")
158158
return
159159

160160
# Then remove the connected orphaned device(s)
161-
via_device_id = gateway_device.id
161+
via_device_id = gateway_device.id
162162
for device_entry in self._current_devices:
163163
for identifier in device_entry.identifiers:
164164
if (

0 commit comments

Comments
 (0)