plugwise 0.37.4__tar.gz → 0.37.5__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.
Files changed (32) hide show
  1. {plugwise-0.37.4 → plugwise-0.37.5}/PKG-INFO +1 -1
  2. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/__init__.py +2 -2
  3. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/legacy/smile.py +1 -1
  4. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/smile.py +2 -2
  5. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise.egg-info/PKG-INFO +1 -1
  6. {plugwise-0.37.4 → plugwise-0.37.5}/pyproject.toml +1 -1
  7. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_init.py +2 -2
  8. {plugwise-0.37.4 → plugwise-0.37.5}/LICENSE +0 -0
  9. {plugwise-0.37.4 → plugwise-0.37.5}/README.md +0 -0
  10. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/common.py +0 -0
  11. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/constants.py +0 -0
  12. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/data.py +0 -0
  13. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/exceptions.py +0 -0
  14. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/helper.py +0 -0
  15. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/legacy/data.py +0 -0
  16. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/legacy/helper.py +0 -0
  17. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/py.typed +0 -0
  18. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise/util.py +0 -0
  19. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise.egg-info/SOURCES.txt +0 -0
  20. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise.egg-info/dependency_links.txt +0 -0
  21. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise.egg-info/requires.txt +0 -0
  22. {plugwise-0.37.4 → plugwise-0.37.5}/plugwise.egg-info/top_level.txt +0 -0
  23. {plugwise-0.37.4 → plugwise-0.37.5}/setup.cfg +0 -0
  24. {plugwise-0.37.4 → plugwise-0.37.5}/setup.py +0 -0
  25. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_adam.py +0 -0
  26. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_anna.py +0 -0
  27. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_generic.py +0 -0
  28. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_legacy_anna.py +0 -0
  29. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_legacy_generic.py +0 -0
  30. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_legacy_p1.py +0 -0
  31. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_legacy_stretch.py +0 -0
  32. {plugwise-0.37.4 → plugwise-0.37.5}/tests/test_p1.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plugwise
3
- Version: 0.37.4
3
+ Version: 0.37.5
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
@@ -325,12 +325,12 @@ class Smile(SmileComm):
325
325
 
326
326
  async def set_number(
327
327
  self,
328
+ dev_id: str,
328
329
  key: str,
329
330
  temperature: float,
330
- dev_id: str | None = None,
331
331
  ) -> None:
332
332
  """Set the max. Boiler or DHW setpoint on the Central Heating boiler."""
333
- await self._smile_api.set_number(key, temperature, dev_id)
333
+ await self._smile_api.set_number(dev_id, key, temperature)
334
334
 
335
335
  async def set_switch_state(
336
336
  self, appl_id: str, members: list[str] | None, model: str, state: str
@@ -156,9 +156,9 @@ class SmileLegacyAPI(SmileComm, SmileLegacyData):
156
156
 
157
157
  async def set_number(
158
158
  self,
159
+ dev_id: str,
159
160
  key: str,
160
161
  temperature: float,
161
- dev_id: str | None,
162
162
  ) -> None:
163
163
  """Set-function placeholder for legacy devices."""
164
164
 
@@ -184,12 +184,12 @@ class SmileAPI(SmileComm, SmileData):
184
184
 
185
185
  async def set_number(
186
186
  self,
187
+ dev_id: str,
187
188
  key: str,
188
189
  temperature: float,
189
- dev_id: str | None,
190
190
  ) -> None:
191
191
  """Set the maximum boiler- or DHW-setpoint on the Central Heating boiler or the temperature-offset on a Thermostat."""
192
- if dev_id is not None:
192
+ if key == "temperature_offset":
193
193
  await self.set_offset(dev_id, temperature)
194
194
  return
195
195
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plugwise
3
- Version: 0.37.4
3
+ Version: 0.37.5
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "plugwise"
7
- version = "0.37.4"
7
+ version = "0.37.5"
8
8
  license = {file = "LICENSE"}
9
9
  description = "Plugwise Smile (Adam/Anna/P1) and Stretch module for Python 3."
10
10
  readme = "README.md"
@@ -876,7 +876,7 @@ class TestPlugwise: # pylint: disable=attribute-defined-outside-init
876
876
  _LOGGER.info("- Adjusting temperature to %s", new_temp)
877
877
  for test in ["maximum_boiler_temperature", "bogus_temperature"]:
878
878
  try:
879
- await smile.set_number(test, new_temp)
879
+ await smile.set_number("dummy", test, new_temp)
880
880
  _LOGGER.info(" + tinker_max_boiler_temp worked as intended")
881
881
  except pw_exceptions.PlugwiseError:
882
882
  _LOGGER.info(" + tinker_max_boiler_temp failed as intended")
@@ -887,7 +887,7 @@ class TestPlugwise: # pylint: disable=attribute-defined-outside-init
887
887
  new_offset = 1.0
888
888
  _LOGGER.info("- Adjusting temperature offset to %s", new_offset)
889
889
  try:
890
- await smile.set_number("dummy", new_offset, dev_id=dev_id)
890
+ await smile.set_number(dev_id, "temperature_offset", new_offset)
891
891
  _LOGGER.info(" + tinker_temp_offset worked as intended")
892
892
  return True
893
893
  except pw_exceptions.PlugwiseError:
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