mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fritz: small optimization (#63693)
* Revert "Improve availability for Shelly Valve" This reverts commit d8cbd81b456820153522e6d86bbd00c4a4a31129. * Small optimization
This commit is contained in:
parent
e3c793718c
commit
e6419fd505
@ -184,6 +184,7 @@ class FritzBoxTools(update_coordinator.DataUpdateCoordinator):
|
||||
_LOGGER.error("Unable to establish a connection with %s", self.host)
|
||||
return
|
||||
|
||||
self.fritz_hosts = FritzHosts(fc=self.connection)
|
||||
self.fritz_status = FritzStatus(fc=self.connection)
|
||||
info = self.connection.call_action("DeviceInfo:1", "GetInfo")
|
||||
if not self._unique_id:
|
||||
@ -199,7 +200,6 @@ class FritzBoxTools(update_coordinator.DataUpdateCoordinator):
|
||||
async def _async_update_data(self) -> None:
|
||||
"""Update FritzboxTools data."""
|
||||
try:
|
||||
self.fritz_hosts = FritzHosts(fc=self.connection)
|
||||
await self.async_scan_devices()
|
||||
except (FritzSecurityError, FritzConnectionException) as ex:
|
||||
raise update_coordinator.UpdateFailed from ex
|
||||
|
Loading…
x
Reference in New Issue
Block a user