File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ async def _smile_detect_legacy(
296296 ):
297297 system = await self ._request (SYSTEM )
298298 self .smile_version = parse (system .find ("./gateway/firmware" ).text )
299- return_model = system .find ("./gateway/product" ).text
299+ return_model = str ( system .find ("./gateway/product" ).text )
300300 self .smile_hostname = system .find ("./gateway/hostname" ).text
301301 # If wlan0 contains data it's active, so eth0 should be checked last
302302 for network in ("wlan0" , "eth0" ):
@@ -307,7 +307,7 @@ async def _smile_detect_legacy(
307307 elif dsmrmain is not None :
308308 status = await self ._request (STATUS )
309309 self .smile_version = parse (status .find ("./system/version" ).text )
310- return_model = status .find ("./system/product" ).text
310+ return_model = str ( status .find ("./system/product" ).text )
311311 self .smile_hostname = status .find ("./network/hostname" ).text
312312 self .smile_mac_address = status .find ("./network/mac_address" ).text
313313 else : # pragma: no cover
You can’t perform that action at this time.
0 commit comments