Skip to content

Commit 3e05a55

Browse files
committed
Revert breaks
1 parent 84537bc commit 3e05a55

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,12 @@ async def _smile_detect_legacy(
298298
self.smile_version = parse(system.find("./gateway/firmware").text)
299299
return_model = str(system.find("./gateway/product").text)
300300
self.smile_hostname = system.find("./gateway/hostname").text
301-
# If wlan0 contains data it's active, so eth0 should be checked last
301+
# If wlan0 contains data it's active, eth0 should be checked last as is preferred
302302
for network in ("wlan0", "eth0"):
303303
locator = f"./{network}/mac"
304304
if (net_locator := system.find(locator)) is not None:
305305
self.smile_mac_address = net_locator.text
306-
break
306+
307307
# P1 legacy:
308308
elif dsmrmain is not None:
309309
status = await self._request(STATUS)

plugwise/data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def _update_gw_entities(self) -> None:
6969
if entity_id == self._gateway_id:
7070
mac_list = self._detect_low_batteries()
7171
self._add_or_update_notifications(entity_id, entity, data)
72-
break # one gateway present
7372

7473
entity.update(data)
7574
is_battery_low = (

0 commit comments

Comments
 (0)