plugwise 0.37.2__tar.gz → 0.37.3__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.
- {plugwise-0.37.2 → plugwise-0.37.3}/PKG-INFO +1 -2
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/legacy/smile.py +5 -1
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise.egg-info/PKG-INFO +1 -2
- {plugwise-0.37.2 → plugwise-0.37.3}/pyproject.toml +1 -2
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_init.py +10 -26
- {plugwise-0.37.2 → plugwise-0.37.3}/LICENSE +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/README.md +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/__init__.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/common.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/constants.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/data.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/exceptions.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/helper.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/legacy/data.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/legacy/helper.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/py.typed +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/smile.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise/util.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise.egg-info/SOURCES.txt +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise.egg-info/dependency_links.txt +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise.egg-info/requires.txt +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/plugwise.egg-info/top_level.txt +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/setup.cfg +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/setup.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_adam.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_anna.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_generic.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_legacy_anna.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_legacy_generic.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_legacy_p1.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_legacy_stretch.py +0 -0
- {plugwise-0.37.2 → plugwise-0.37.3}/tests/test_p1.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: plugwise
|
3
|
-
Version: 0.37.
|
3
|
+
Version: 0.37.3
|
4
4
|
Summary: Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3.
|
5
5
|
Home-page: https://github.com/plugwise/python-plugwise
|
6
6
|
Author: Plugwise device owners
|
@@ -35,7 +35,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
35
35
|
Classifier: Intended Audience :: Developers
|
36
36
|
Classifier: License :: OSI Approved :: MIT License
|
37
37
|
Classifier: Operating System :: OS Independent
|
38
|
-
Classifier: Programming Language :: Python :: 3.11
|
39
38
|
Classifier: Programming Language :: Python :: 3.12
|
40
39
|
Classifier: Topic :: Home Automation
|
41
40
|
Requires-Python: >=3.11.0
|
@@ -249,8 +249,12 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
|
|
249
249
|
|
250
250
|
await self._request(uri, method="put", data=data)
|
251
251
|
|
252
|
-
async def set_temperature(self,
|
252
|
+
async def set_temperature(self, _: str, items: dict[str, float]) -> None:
|
253
253
|
"""Set the given Temperature on the relevant Thermostat."""
|
254
|
+
setpoint: float | None = None
|
255
|
+
if "setpoint" in items:
|
256
|
+
setpoint = items["setpoint"]
|
257
|
+
|
254
258
|
if setpoint is None:
|
255
259
|
raise PlugwiseError(
|
256
260
|
"Plugwise: failed setting temperature: no valid input provided"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: plugwise
|
3
|
-
Version: 0.37.
|
3
|
+
Version: 0.37.3
|
4
4
|
Summary: Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3.
|
5
5
|
Home-page: https://github.com/plugwise/python-plugwise
|
6
6
|
Author: Plugwise device owners
|
@@ -35,7 +35,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
35
35
|
Classifier: Intended Audience :: Developers
|
36
36
|
Classifier: License :: OSI Approved :: MIT License
|
37
37
|
Classifier: Operating System :: OS Independent
|
38
|
-
Classifier: Programming Language :: Python :: 3.11
|
39
38
|
Classifier: Programming Language :: Python :: 3.12
|
40
39
|
Classifier: Topic :: Home Automation
|
41
40
|
Requires-Python: >=3.11.0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "plugwise"
|
7
|
-
version = "0.37.
|
7
|
+
version = "0.37.3"
|
8
8
|
license = {file = "LICENSE"}
|
9
9
|
description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3."
|
10
10
|
readme = "README.md"
|
@@ -14,7 +14,6 @@ classifiers = [
|
|
14
14
|
"Intended Audience :: Developers",
|
15
15
|
"License :: OSI Approved :: MIT License",
|
16
16
|
"Operating System :: OS Independent",
|
17
|
-
"Programming Language :: Python :: 3.11",
|
18
17
|
"Programming Language :: Python :: 3.12",
|
19
18
|
"Topic :: Home Automation",
|
20
19
|
]
|
@@ -686,30 +686,6 @@ class TestPlugwise: # pylint: disable=attribute-defined-outside-init
|
|
686
686
|
|
687
687
|
return tinker_temp_passed
|
688
688
|
|
689
|
-
@pytest.mark.asyncio
|
690
|
-
async def tinker_legacy_thermostat_temp(self, smile, unhappy=False):
|
691
|
-
"""Toggle temperature to test functionality."""
|
692
|
-
_LOGGER.info("Assert modifying temperature setpoint")
|
693
|
-
tinker_temp_passed = False
|
694
|
-
test_temp = 22.9
|
695
|
-
_LOGGER.info("- Adjusting temperature to %s", test_temp)
|
696
|
-
try:
|
697
|
-
await smile.set_temperature(test_temp, None)
|
698
|
-
_LOGGER.info(" + worked as intended")
|
699
|
-
tinker_temp_passed = True
|
700
|
-
except (
|
701
|
-
pw_exceptions.ErrorSendingCommandError,
|
702
|
-
pw_exceptions.ResponseError,
|
703
|
-
):
|
704
|
-
if unhappy:
|
705
|
-
_LOGGER.info(" + failed as expected")
|
706
|
-
tinker_temp_passed = True
|
707
|
-
else: # pragma: no cover
|
708
|
-
_LOGGER.info(" - failed unexpectedly")
|
709
|
-
tinker_temp_passed = False
|
710
|
-
|
711
|
-
return tinker_temp_passed
|
712
|
-
|
713
689
|
@pytest.mark.asyncio
|
714
690
|
async def tinker_thermostat_preset(self, smile, loc_id, unhappy=False):
|
715
691
|
"""Toggle preset to test functionality."""
|
@@ -843,9 +819,17 @@ class TestPlugwise: # pylint: disable=attribute-defined-outside-init
|
|
843
819
|
return result_1 and result_2 and result_3
|
844
820
|
|
845
821
|
@pytest.mark.asyncio
|
846
|
-
async def tinker_legacy_thermostat(
|
822
|
+
async def tinker_legacy_thermostat(
|
823
|
+
self,
|
824
|
+
smile,
|
825
|
+
schedule_on=True,
|
826
|
+
block_cooling=False,
|
827
|
+
unhappy=False
|
828
|
+
):
|
847
829
|
"""Toggle various climate settings to test functionality."""
|
848
|
-
result_1 = await self.
|
830
|
+
result_1 = await self.tinker_thermostat_temp(
|
831
|
+
smile, "dummy", block_cooling, unhappy
|
832
|
+
)
|
849
833
|
result_2 = await self.tinker_thermostat_preset(smile, None, unhappy)
|
850
834
|
result_3 = await self.tinker_legacy_thermostat_schedule(smile, unhappy)
|
851
835
|
if schedule_on:
|
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
|