Fix DSM Surveillance Station when only home mode is enabled (#42456)

This commit is contained in:
Quentame 2020-10-27 14:50:20 +01:00 committed by GitHub
parent f23fcfcd9b
commit 6776b1ddd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,6 +316,8 @@ class SynoApi:
)
self._with_surveillance_station = bool(
self._fetching_entities.get(SynoSurveillanceStation.CAMERA_API_KEY)
) or bool(
self._fetching_entities.get(SynoSurveillanceStation.HOME_MODE_API_KEY)
)
# Reset not used API, information is not reset since it's used in device_info