Skip to content

Commit

Permalink
added time zone to camera/bases
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked committed Oct 29, 2019
1 parent fd269d1 commit 7c134d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/aarlo/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
ATTR_MODE = 'mode'
ATTR_VOLUME = 'volume'
ATTR_DURATION = 'duration'
ATTR_TIME_ZONE = 'time_zone'

SERVICE_MODE = 'aarlo_set_mode'
SERVICE_SIREN_ON = 'aarlo_siren_on'
Expand Down Expand Up @@ -212,6 +213,7 @@ def device_state_attributes(self):
attrs = {}

attrs[ATTR_ATTRIBUTION] = CONF_ATTRIBUTION
attrs[ATTR_TIME_ZONE] = self._base.timezone
attrs['brand'] = DEFAULT_BRAND
attrs['device_id'] = self._base.device_id
attrs['model_id'] = self._base.model_id
Expand Down
2 changes: 2 additions & 0 deletions custom_components/aarlo/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
ATTR_VOLUME = 'volume'
ATTR_LAST_THUMBNAIL = 'last_thumbnail'
ATTR_DURATION = 'duration'
ATTR_TIME_ZONE = 'time_zone'

CONF_FFMPEG_ARGUMENTS = 'ffmpeg_arguments'

Expand Down Expand Up @@ -353,6 +354,7 @@ def device_state_attributes(self):
(ATTR_WIRED_ONLY, self._camera.wired_only),
(ATTR_LAST_THUMBNAIL, self.last_thumbnail_url),
(ATTR_LAST_VIDEO, self.last_video_url),
(ATTR_TIME_ZONE, self._camera.timezone),
) if value is not None
}

Expand Down

0 comments on commit 7c134d1

Please sign in to comment.