plugwise 0.37.4__py3-none-any.whl → 0.37.5__py3-none-any.whl

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/__init__.py CHANGED
@@ -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
plugwise/legacy/smile.py CHANGED
@@ -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
 
plugwise/smile.py CHANGED
@@ -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
@@ -1,17 +1,17 @@
1
- plugwise/__init__.py,sha256=VDmk0QDi3sDHKlzXLEq4SRm9dUwiWqruXvf_6mNTH6o,13810
1
+ plugwise/__init__.py,sha256=6htaD3AMGbtiuI30EJX9D6gy-gYjA9Lfdl_GZ7Syzmw,13796
2
2
  plugwise/common.py,sha256=P4sUYzgVcFsIR2DmQxeVeOiZvFZWpZXgwHA3XRc1Sx0,12538
3
3
  plugwise/constants.py,sha256=adi2UFHJUcPRWNz1bn155NC9DLzhYbeNriMKTpSyWAg,16574
4
4
  plugwise/data.py,sha256=OTkPJ80b1L1h_TeddfvmUPX1-jBacTjbHKD0XgUIfeg,8965
5
5
  plugwise/exceptions.py,sha256=rymGtWnXosdFkzSehc_41HVl2jXJEg_9Hq9APDEUwrk,1223
6
6
  plugwise/helper.py,sha256=bNT_Tdc0LAxmVZEikMgKm461jeGP-WY-cI1r3JGgIcI,44037
7
7
  plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- plugwise/smile.py,sha256=YK41CbqMSAQytPOeBiHkXEvinCU5Sm7hDaYUpeqnVCA,17175
8
+ plugwise/smile.py,sha256=iGaA_1pWHeFUSK4k_jAS1qV7Bm3hDJsIDAj2GSixyms,17177
9
9
  plugwise/util.py,sha256=w24CiW-xSV3ARZAeNYZ9T5C4kJpYGCcBoIlX2BhNOYg,6618
10
10
  plugwise/legacy/data.py,sha256=y7gBG9Sg40lltB3B5CpWPtAXggMbcx2IMay-mwvOB1M,2986
11
11
  plugwise/legacy/helper.py,sha256=tSrqA2UeMO7HSYudQHAxBThBTevAOKIxHqN6NCN-r5k,18947
12
- plugwise/legacy/smile.py,sha256=J5y5tIPCz-zpp_4G_TB8II6jy6xNaIJeiAsmxGsondk,10257
13
- plugwise-0.37.4.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
14
- plugwise-0.37.4.dist-info/METADATA,sha256=HF9iqxV-J1vKOXOq7C0BmugM7dCX9qb6o9rx_qkSENw,8939
15
- plugwise-0.37.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
16
- plugwise-0.37.4.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
17
- plugwise-0.37.4.dist-info/RECORD,,
12
+ plugwise/legacy/smile.py,sha256=ltg9XQBPSCCZV4QnqSZ3e9Ta1Zkdqs8MwQJgyyavg3A,10250
13
+ plugwise-0.37.5.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
14
+ plugwise-0.37.5.dist-info/METADATA,sha256=ho502aS821_t2yuQA8C2fvAyqPSaFfRJaEq5NHyQEWQ,8939
15
+ plugwise-0.37.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
16
+ plugwise-0.37.5.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
17
+ plugwise-0.37.5.dist-info/RECORD,,