diff --git a/custom_components/davis_vantage/client.py b/custom_components/davis_vantage/client.py index a1f7fb0..1e52ac6 100755 --- a/custom_components/davis_vantage/client.py +++ b/custom_components/davis_vantage/client.py @@ -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 diff --git a/custom_components/davis_vantage/const.py b/custom_components/davis_vantage/const.py index 87f55ad..509b01f 100755 --- a/custom_components/davis_vantage/const.py +++ b/custom_components/davis_vantage/const.py @@ -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