Skip to content

Commit 76ac83a

Browse files
committed
Revert break
1 parent 84537bc commit 76ac83a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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)

0 commit comments

Comments
 (0)