Skip to content

Commit e4b5dc4

Browse files
committed
Fix typing
1 parent 45782f9 commit e4b5dc4

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
@@ -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

0 commit comments

Comments
 (0)