Fix firmware status check for Fritz (#59578)
This commit is contained in:
parent
44ae0e214a
commit
4cfac18e1a
1 changed files with 2 additions and 2 deletions
|
@ -257,10 +257,10 @@ class FritzBoxTools:
|
|||
|
||||
def _update_device_info(self) -> tuple[bool, str | None]:
|
||||
"""Retrieve latest device information from the FRITZ!Box."""
|
||||
userinterface = self.connection.call_action("UserInterface1", "GetInfo")
|
||||
return userinterface.get("NewUpgradeAvailable"), userinterface.get(
|
||||
version = self.connection.call_action("UserInterface1", "GetInfo").get(
|
||||
"NewX_AVM-DE_Version"
|
||||
)
|
||||
return bool(version), version
|
||||
|
||||
def scan_devices(self, now: datetime | None = None) -> None:
|
||||
"""Scan for new devices and return a list of found device ids."""
|
||||
|
|
Loading…
Add table
Reference in a new issue