powervaultpy 1.0.1__tar.gz → 1.0.2__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.
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/PKG-INFO +1 -1
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/pyproject.toml +2 -2
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy/powervault.py +3 -7
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy.egg-info/PKG-INFO +1 -1
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/setup.cfg +0 -0
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy/__init__.py +0 -0
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy.egg-info/SOURCES.txt +0 -0
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy.egg-info/dependency_links.txt +0 -0
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy.egg-info/requires.txt +0 -0
- {powervaultpy-1.0.1 → powervaultpy-1.0.2}/src/powervaultpy.egg-info/top_level.txt +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "powervaultpy"
|
7
|
-
version = "1.0.
|
7
|
+
version = "1.0.2"
|
8
8
|
authors = [
|
9
9
|
{ name="Adam McDonagh", email="adam@elitemonkey.net" },
|
10
10
|
]
|
@@ -43,7 +43,7 @@ dev = [
|
|
43
43
|
profile = 'black'
|
44
44
|
|
45
45
|
[tool.bumpver]
|
46
|
-
current_version = "1.0.
|
46
|
+
current_version = "1.0.2"
|
47
47
|
version_pattern = "MAJOR.MINOR.PATCH"
|
48
48
|
commit_message = "bump version {old_version} -> {new_version}"
|
49
49
|
commit = true
|
@@ -50,7 +50,7 @@ class PowerVault:
|
|
50
50
|
) -> None:
|
51
51
|
"""API Client."""
|
52
52
|
self._api_key = api_key
|
53
|
-
self._base_url = "
|
53
|
+
self._base_url = "http://rest-api-v2.powervault.co.uk"
|
54
54
|
self._session = session or requests.Session()
|
55
55
|
|
56
56
|
self._session.headers.update(
|
@@ -139,12 +139,8 @@ class PowerVault:
|
|
139
139
|
]:
|
140
140
|
raise Exception(f"Invalid period: {period}")
|
141
141
|
|
142
|
-
if
|
143
|
-
|
144
|
-
# because for some reason if you leave it blank you get nulls most of the time
|
145
|
-
period = "past_hour" # This is not a valid period, but it gets you the last live values regardless
|
146
|
-
|
147
|
-
url = f"{url}?period={period}"
|
142
|
+
if period:
|
143
|
+
url = f"{url}?period={period}"
|
148
144
|
|
149
145
|
data_response = self._read_response(self._session.get(url), url)
|
150
146
|
_LOGGER.debug("Data: %s", data_response)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|