File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 = (
You can’t perform that action at this time.
0 commit comments