We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84537bc commit 76ac83aCopy full SHA for 76ac83a
plugwise/__init__.py
@@ -298,12 +298,12 @@ async def _smile_detect_legacy(
298
self.smile_version = parse(system.find("./gateway/firmware").text)
299
return_model = str(system.find("./gateway/product").text)
300
self.smile_hostname = system.find("./gateway/hostname").text
301
- # If wlan0 contains data it's active, so eth0 should be checked last
+ # If wlan0 contains data it's active, eth0 should be checked last as is preferred
302
for network in ("wlan0", "eth0"):
303
locator = f"./{network}/mac"
304
if (net_locator := system.find(locator)) is not None:
305
self.smile_mac_address = net_locator.text
306
- break
+
307
# P1 legacy:
308
elif dsmrmain is not None:
309
status = await self._request(STATUS)
0 commit comments