python-omnilogic-local 0.27.1__tar.gz → 0.28.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/PKG-INFO +1 -1
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/omnilogic.py +11 -3
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyproject.toml +1 -1
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/LICENSE +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/README.md +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/_base.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/api.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/constants.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/exceptions.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/mock_api.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/protocol.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/backyard.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/bow.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/chlorinator.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/chlorinator_equip.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/cli.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/debug/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/debug/commands.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/backyard.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/bows.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/chlorinators.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/commands.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/csads.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/filters.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/groups.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/heaters.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/lights.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/pumps.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/relays.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/schedules.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/sensors.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/valves.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/pcap_utils.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/utils.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/collections.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/colorlogiclight.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/csad.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/csad_equip.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/decorators.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/filter.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/groups.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/heater.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/heater_equip.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/__init__.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/const.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/exceptions.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/filter_diagnostics.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/leadmessage.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/mspconfig.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/telemetry.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/omnitypes.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/pump.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/py.typed +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/relay.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/schedule.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/sensor.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/system.py +0 -0
- {python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-omnilogic-local
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.28.0
|
|
4
4
|
Summary: A library for local control of Hayward OmniHub/OmniLogic pool controllers using their local API
|
|
5
5
|
Author: Chris Jowett, djtimca, garionphx
|
|
6
6
|
Author-email: Chris Jowett <421501+cryptk@users.noreply.github.com>
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/omnilogic.py
RENAMED
|
@@ -92,6 +92,8 @@ class OmniLogic:
|
|
|
92
92
|
*,
|
|
93
93
|
if_dirty: bool = True,
|
|
94
94
|
if_older_than: float = 10.0,
|
|
95
|
+
force_telemetry: bool = False,
|
|
96
|
+
force_mspconfig: bool = False,
|
|
95
97
|
force: bool = False,
|
|
96
98
|
) -> None:
|
|
97
99
|
"""Refresh the data from the OmniLogic controller.
|
|
@@ -101,14 +103,20 @@ class OmniLogic:
|
|
|
101
103
|
telemetry: Whether to refresh Telemetry data (if conditions are met)
|
|
102
104
|
if_dirty: Only refresh if the data has been marked dirty
|
|
103
105
|
if_older_than: Only refresh if data is older than this many seconds
|
|
104
|
-
|
|
106
|
+
force_telemetry: Force refresh of telemetry data regardless of dirty flag or age
|
|
107
|
+
force_mspconfig: Force refresh of MSPConfig data regardless of dirty flag or age
|
|
108
|
+
force: Force refresh of telemetry and MSPConfig (deprecated, use individual force flags instead)
|
|
105
109
|
"""
|
|
110
|
+
if force:
|
|
111
|
+
force_telemetry = True
|
|
112
|
+
force_mspconfig = True
|
|
113
|
+
|
|
106
114
|
async with self._refresh_lock:
|
|
107
115
|
current_time = time.time()
|
|
108
116
|
|
|
109
117
|
# Determine if telemetry needs updating
|
|
110
118
|
update_telemetry = False
|
|
111
|
-
if
|
|
119
|
+
if force_telemetry or (if_dirty and self._telemetry_dirty) or ((current_time - self._telemetry_last_updated) > if_older_than):
|
|
112
120
|
update_telemetry = True
|
|
113
121
|
|
|
114
122
|
# Update telemetry if needed
|
|
@@ -119,7 +127,7 @@ class OmniLogic:
|
|
|
119
127
|
|
|
120
128
|
# Determine if MSPConfig needs updating
|
|
121
129
|
update_mspconfig = False
|
|
122
|
-
if
|
|
130
|
+
if force_mspconfig:
|
|
123
131
|
update_mspconfig = True
|
|
124
132
|
if self.telemetry.backyard.config_checksum != self._mspconfig_checksum:
|
|
125
133
|
update_mspconfig = True
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/__init__.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/api.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/constants.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/exceptions.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/mock_api.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/api/protocol.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/backyard.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/chlorinator.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/__init__.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/cli.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/bows.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/csads.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/filters.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/groups.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/heaters.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/lights.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/pumps.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/relays.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/sensors.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/get/valves.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/pcap_utils.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/cli/utils.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/collections.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/colorlogiclight.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/csad_equip.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/heater_equip.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/__init__.py
RENAMED
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/models/const.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/omnitypes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_omnilogic_local-0.27.1 → python_omnilogic_local-0.28.0}/pyomnilogic_local/schedule.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|