Skip to content

Commit

Permalink
feat: small cleanups to devices (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jun 25, 2024
1 parent 24849d8 commit 1b64a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uiprotect/data/nvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ async def _api_update(self, data: dict[str, Any]) -> None:

@property
def is_analytics_enabled(self) -> bool:
return self.analytics_data != AnalyticsOption.NONE
return self.analytics_data is not AnalyticsOption.NONE

@property
def protect_url(self) -> str:
Expand All @@ -1037,7 +1037,7 @@ def display_name(self) -> str:
@property
def vault_cameras(self) -> list[Camera]:
"""Vault Cameras for NVR"""
if len(self.vault_camera_ids) == 0:
if not self.vault_camera_ids:
return []
return [self._api.bootstrap.cameras[c] for c in self.vault_camera_ids]

Expand Down

0 comments on commit 1b64a8e

Please sign in to comment.