smartbox 2.1.0b4__tar.gz → 2.1.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.
- {smartbox-2.1.0b4 → smartbox-2.1.2}/PKG-INFO +6 -3
- {smartbox-2.1.0b4 → smartbox-2.1.2}/README.md +5 -2
- {smartbox-2.1.0b4 → smartbox-2.1.2}/pyproject.toml +1 -1
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/models.py +1 -1
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/session.py +5 -4
- {smartbox-2.1.0b4 → smartbox-2.1.2}/uv.lock +1 -1
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/FUNDING.yml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/ISSUE_TEMPLATE/new-resailer.md +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/dependabot.yml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/workflows/publish-to-pypi.yml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.github/workflows/python-package.yml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.gitignore +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.pre-commit-config.yaml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/.vscode/settings.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/CHANGELOG.md +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/CODEOWNERS +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/LICENSE +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/api-notes.md +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/codecov.yml +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/requirements.txt +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/__init__.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/cmd.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/error.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/py.typed +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/resailer.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/socket.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/src/smartbox/update_manager.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/__init__.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/common.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/conftest.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/acm/1/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/acm/1/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/acm/1/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/htr/0/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/htr/0/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/htr/0/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/htr_system/power_limit.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/mgr/away_status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device1/mgr/nodes.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/0/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/0/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/0/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/1/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/1/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/1/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/2/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/2/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/2/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/3/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/3/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/3/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/4/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/4/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/4/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/5/samples.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/5/setup.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_mod/5/status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/htr_system/power_limit.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/mgr/away_status.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs/device2/mgr/nodes.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/devs.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/grouped_devs.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/groups/test_home/guest_users.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/fixtures/test_path.json +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/test_cmd.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/test_models.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/test_resailer.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/test_session.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tests/test_update_manager.py +0 -0
- {smartbox-2.1.0b4 → smartbox-2.1.2}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: smartbox
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.2
|
|
4
4
|
Summary: Python API to control heating 'smart boxes'
|
|
5
5
|
Project-URL: Homepage, https://github.com/ajtudela/smartbox
|
|
6
6
|
Project-URL: Issues, https://github.com/ajtudela/smartbox/issues
|
|
@@ -180,8 +180,11 @@ or by specifying a python version
|
|
|
180
180
|
tox -e py313
|
|
181
181
|
|
|
182
182
|
# Support
|
|
183
|
-
[![Buy
|
|
183
|
+
[![Buy a coffee to ajtudela][buymeacoffee-shield]][buymeacoffee-ajtudela]
|
|
184
184
|
|
|
185
|
-
[buymeacoffee]
|
|
185
|
+
[![Buy a coffee to delmael][buymeacoffee-shield]][buymeacoffee-delmael]
|
|
186
|
+
|
|
187
|
+
[buymeacoffee-ajtudela]: https://www.buymeacoffee.com/ajtudela
|
|
188
|
+
[buymeacoffee-delmael]: https://www.buymeacoffee.com/delmael
|
|
186
189
|
|
|
187
190
|
[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
|
|
@@ -158,8 +158,11 @@ or by specifying a python version
|
|
|
158
158
|
tox -e py313
|
|
159
159
|
|
|
160
160
|
# Support
|
|
161
|
-
[![Buy
|
|
161
|
+
[![Buy a coffee to ajtudela][buymeacoffee-shield]][buymeacoffee-ajtudela]
|
|
162
162
|
|
|
163
|
-
[buymeacoffee]
|
|
163
|
+
[![Buy a coffee to delmael][buymeacoffee-shield]][buymeacoffee-delmael]
|
|
164
|
+
|
|
165
|
+
[buymeacoffee-ajtudela]: https://www.buymeacoffee.com/ajtudela
|
|
166
|
+
[buymeacoffee-delmael]: https://www.buymeacoffee.com/delmael
|
|
164
167
|
|
|
165
168
|
[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
|
|
@@ -260,6 +260,7 @@ class AsyncSmartboxSession(AsyncSession):
|
|
|
260
260
|
async def get_devices(self) -> list[dict[str, Any]] | Devices:
|
|
261
261
|
"""Get all devices."""
|
|
262
262
|
response = await self._api_request("devs")
|
|
263
|
+
_LOGGER.debug("Get devices %s", response)
|
|
263
264
|
devices: Devices = Devices.model_validate(response)
|
|
264
265
|
if self.raw_response is False:
|
|
265
266
|
return devices
|
|
@@ -300,10 +301,10 @@ class AsyncSmartboxSession(AsyncSession):
|
|
|
300
301
|
) -> list[dict[str, Any]] | list[Node]:
|
|
301
302
|
"""Get nodes from devices."""
|
|
302
303
|
response = await self._api_request(f"devs/{device_id}/mgr/nodes")
|
|
303
|
-
nodes
|
|
304
|
-
if self.raw_response is
|
|
305
|
-
return nodes
|
|
306
|
-
return
|
|
304
|
+
_LOGGER.debug("Get nodes %s", response)
|
|
305
|
+
if self.raw_response is True:
|
|
306
|
+
return response["nodes"]
|
|
307
|
+
return Nodes.model_validate(response).nodes
|
|
307
308
|
|
|
308
309
|
async def get_device_away_status(
|
|
309
310
|
self,
|
|
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
|
|
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
|
|
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
|