mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Fix arlo intilization when no base station available (#16529)
* Fix arlo intilization when no base station * Fix pylint for empty camera check * Fix typo * Minor change to trigger CI again
This commit is contained in:
parent
ee696643cd
commit
6b08e6e769
@ -61,10 +61,12 @@ def setup(hass, config):
|
|||||||
arlo_base_station = next((
|
arlo_base_station = next((
|
||||||
station for station in arlo.base_stations), None)
|
station for station in arlo.base_stations), None)
|
||||||
|
|
||||||
if arlo_base_station is None:
|
if arlo_base_station is not None:
|
||||||
|
arlo_base_station.refresh_rate = scan_interval.total_seconds()
|
||||||
|
elif not arlo.cameras:
|
||||||
|
_LOGGER.error("No Arlo camera or base station available.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
arlo_base_station.refresh_rate = scan_interval.total_seconds()
|
|
||||||
hass.data[DATA_ARLO] = arlo
|
hass.data[DATA_ARLO] = arlo
|
||||||
|
|
||||||
except (ConnectTimeout, HTTPError) as ex:
|
except (ConnectTimeout, HTTPError) as ex:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user