Skip to content

Commit

Permalink
Signficantly sped up the integration startup time during HA reboot an…
Browse files Browse the repository at this point in the history
…d fetch time.
  • Loading branch information
MarcoGos committed Feb 5, 2025
1 parent 4b3fd1d commit c2804c4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The following actions are available:
- Davis Vantage: Set Yearly Rain
- Change yearly rain in clicks (depending on setup one click = 0.01" or 0.2mm)
- Davis Vantage: Set Archive Period
- Change archive period in minutes (accepted values: 1, 5, 10, 15, 30, 60, 120). WARNING: This will erase all archived data.
- Change archive period in minutes (accepted values: 1, 5, 10, 15, 30, 60, 120). WARNING: This will erase all archived data within the console/envoy.


## Known problems
Expand Down
8 changes: 4 additions & 4 deletions custom_components/davis_vantage/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def get_current_data(

try:
hilows = self._vantagepro2.get_hilows()
except Exception:
pass
except Exception as e:
_LOGGER.error("Couldn't get hilows: %s", e)

try:
end_datetime = datetime.now()
start_datetime = end_datetime - timedelta(
minutes=self._vantagepro2.archive_period * 2
) # type: ignore
minutes=self._vantagepro2.archive_period * 2 # type: ignore
)
archives = self._vantagepro2.get_archives(start_datetime, end_datetime) # type: ignore
except Exception:
pass
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.3.4"
VERSION = "1.3.5"

DEFAULT_SYNC_INTERVAL = 30 # seconds
DEFAULT_NAME = NAME
Expand Down
4 changes: 2 additions & 2 deletions custom_components/davis_vantage/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"homekit": {},
"iot_class": "local_polling",
"issue_tracker": "https://github.com/MarcoGos/davis_vantage/issues",
"requirements": ["PyVantagePro-MarcoGos==0.3.16"],
"requirements": ["PyVantagePro-MarcoGos==0.3.17"],
"ssdp": [],
"version": "1.3.4",
"version": "1.3.5",
"zeroconf": []
}

0 comments on commit c2804c4

Please sign in to comment.