Skip to content

Commit 780915c

Browse files
authored
Fix for device_info JSON format (#130)
1 parent 3c79b35 commit 780915c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sagemcom_api/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ async def get_device_info(self) -> DeviceInfo:
362362
"""Retrieve information about Sagemcom F@st device."""
363363
try:
364364
data = await self.get_value_by_xpath("Device/DeviceInfo")
365+
return DeviceInfo(**data.get("device_info"))
365366
except UnknownPathException:
366367
data = await self.get_values_by_xpaths(
367368
{

0 commit comments

Comments
 (0)