Skip to content

Commit

Permalink
Reverted last fix about receiving archive period
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGos committed Sep 26, 2024
1 parent bd555d1 commit da7ee80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions custom_components/davis_vantage/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def get_current_data(
self._vantagepro2.link.close()
raise e

if self._hass.data.get(DATA_ARCHIVE_PERIOD) is None:
_LOGGER.warning("Didn't get the archive period the first time, trying again")
try:
static_info = self.async_get_info()
self._hass.data.setdefault(DATA_ARCHIVE_PERIOD, static_info.get('archive_period', None))
except Exception as e:
raise e
#if self._hass.data.get(DATA_ARCHIVE_PERIOD) is None:
# _LOGGER.warning("Didn't get the archive period the first time, trying again")
# try:
# static_info = self.async_get_info()
# self._hass.data.setdefault(DATA_ARCHIVE_PERIOD, static_info.get('archive_period', None))
# except Exception as e:
# raise e

try:
hilows = self._vantagepro2.get_hilows() # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion custom_components/davis_vantage/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NAME = "Davis Vantage"
DOMAIN = "davis_vantage"
MANUFACTURER = "Davis"
VERSION = "1.2.3"
VERSION = "1.2.4"

DEFAULT_SYNC_INTERVAL = 30 # seconds
DEFAULT_NAME = NAME
Expand Down

0 comments on commit da7ee80

Please sign in to comment.