pyhive-integration 1.0.8.dev9__tar.gz → 1.0.8.dev10__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.
- {pyhive_integration-1.0.8.dev9/pyhive_integration.egg-info → pyhive_integration-1.0.8.dev10}/PKG-INFO +1 -1
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10/pyhive_integration.egg-info}/PKG-INFO +1 -1
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/setup.py +1 -1
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/heating.py +15 -3
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/session.py +2 -2
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/LICENSE +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/MANIFEST.in +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/README.md +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/pyhive_integration.egg-info/SOURCES.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/pyhive_integration.egg-info/dependency_links.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/pyhive_integration.egg-info/requires.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/pyhive_integration.egg-info/top_level.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/pyproject.toml +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/requirements.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/requirements_test.txt +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/setup.cfg +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/__init__.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/action.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/alarm.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/api/__init__.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/api/hive_api.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/api/hive_async_api.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/api/hive_auth.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/api/hive_auth_async.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/camera.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/device_attributes.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/__init__.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/const.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/debugger.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/hive_exceptions.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/hive_helper.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/hivedataclasses.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/map.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/hive.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/hotwater.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/hub.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/light.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/plug.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/sensor.py +0 -0
- {pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/tests/test_hub.py +0 -0
|
@@ -17,7 +17,7 @@ def requirements_from_file(filename="requirements.txt"):
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
setup(
|
|
20
|
-
version="1.0.8.
|
|
20
|
+
version="1.0.8.dev10",
|
|
21
21
|
packages=["apyhiveapi", "apyhiveapi.api", "apyhiveapi.helper"],
|
|
22
22
|
package_dir={"apyhiveapi": "src"},
|
|
23
23
|
package_data={"data": ["*.json"]},
|
|
@@ -116,14 +116,26 @@ class HiveHeating:
|
|
|
116
116
|
device (dict): Device to get target temperature for.
|
|
117
117
|
|
|
118
118
|
Returns:
|
|
119
|
-
|
|
119
|
+
float: Target temperature or None if invalid
|
|
120
120
|
"""
|
|
121
121
|
state = None
|
|
122
122
|
|
|
123
123
|
try:
|
|
124
124
|
data = self.session.data.products[device["hiveID"]]
|
|
125
|
-
state =
|
|
126
|
-
state
|
|
125
|
+
state = data["state"].get("target", None)
|
|
126
|
+
if state is None:
|
|
127
|
+
state = data["state"].get("heat", None)
|
|
128
|
+
|
|
129
|
+
if state is not None:
|
|
130
|
+
try:
|
|
131
|
+
state = float(state)
|
|
132
|
+
except (ValueError, TypeError):
|
|
133
|
+
_LOGGER.debug(
|
|
134
|
+
"Non-numeric target temperature value '%s' for %s.",
|
|
135
|
+
state,
|
|
136
|
+
device.get("haName", device.get("hiveID")),
|
|
137
|
+
)
|
|
138
|
+
return None
|
|
127
139
|
except (KeyError, TypeError) as e:
|
|
128
140
|
_LOGGER.error(e)
|
|
129
141
|
|
|
@@ -354,7 +354,7 @@ class HiveSession:
|
|
|
354
354
|
HiveReauthRequired: All retry attempts have been exhausted.
|
|
355
355
|
"""
|
|
356
356
|
last_err = None
|
|
357
|
-
for delay_s in (0, 5,
|
|
357
|
+
for delay_s in (0, 5, 10):
|
|
358
358
|
try:
|
|
359
359
|
if delay_s:
|
|
360
360
|
_LOGGER.debug("Retrying device login in %s seconds.", delay_s)
|
|
@@ -587,7 +587,7 @@ class HiveSession:
|
|
|
587
587
|
)
|
|
588
588
|
await self._retryDeviceLogin()
|
|
589
589
|
last_auth_err = None
|
|
590
|
-
for api_retry_delay in (0,
|
|
590
|
+
for api_retry_delay in (0, 5, 10):
|
|
591
591
|
try:
|
|
592
592
|
if api_retry_delay:
|
|
593
593
|
_LOGGER.debug(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/hive_exceptions.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyhive_integration-1.0.8.dev9 → pyhive_integration-1.0.8.dev10}/src/helper/hivedataclasses.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|