python-tado 0.18.2__tar.gz → 0.18.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.
Files changed (31) hide show
  1. {python_tado-0.18.2/python_tado.egg-info → python_tado-0.18.3}/PKG-INFO +2 -2
  2. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/http.py +1 -1
  3. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/interface/api/hops_tado.py +11 -11
  4. {python_tado-0.18.2 → python_tado-0.18.3}/pyproject.toml +2 -1
  5. {python_tado-0.18.2 → python_tado-0.18.3/python_tado.egg-info}/PKG-INFO +2 -2
  6. {python_tado-0.18.2 → python_tado-0.18.3}/AUTHORS +0 -0
  7. {python_tado-0.18.2 → python_tado-0.18.3}/LICENSE +0 -0
  8. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/__init__.py +0 -0
  9. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/__main__.py +0 -0
  10. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/const.py +0 -0
  11. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/exceptions.py +0 -0
  12. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/interface/__init__.py +0 -0
  13. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/interface/api/__init__.py +0 -0
  14. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/interface/api/my_tado.py +0 -0
  15. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/interface/interface.py +0 -0
  16. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/logger.py +0 -0
  17. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/zone/__init__.py +0 -0
  18. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/zone/hops_zone.py +0 -0
  19. {python_tado-0.18.2 → python_tado-0.18.3}/PyTado/zone/my_zone.py +0 -0
  20. {python_tado-0.18.2 → python_tado-0.18.3}/README.md +0 -0
  21. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/SOURCES.txt +0 -0
  22. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/dependency_links.txt +0 -0
  23. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/entry_points.txt +0 -0
  24. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/not-zip-safe +0 -0
  25. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/requires.txt +0 -0
  26. {python_tado-0.18.2 → python_tado-0.18.3}/python_tado.egg-info/top_level.txt +0 -0
  27. {python_tado-0.18.2 → python_tado-0.18.3}/setup.cfg +0 -0
  28. {python_tado-0.18.2 → python_tado-0.18.3}/tests/test_http.py +0 -0
  29. {python_tado-0.18.2 → python_tado-0.18.3}/tests/test_my_tado.py +0 -0
  30. {python_tado-0.18.2 → python_tado-0.18.3}/tests/test_my_zone.py +0 -0
  31. {python_tado-0.18.2 → python_tado-0.18.3}/tests/test_tado_interface.py +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-tado
3
- Version: 0.18.2
3
+ Version: 0.18.3
4
4
  Summary: PyTado from chrism0dwk, modfied by w.malgadey, diplix, michaelarnauts, LenhartStephan, splifter, syssi, andersonshatch, Yippy, p0thi, Coffee2CodeNL, chiefdragon, FilBr, nikilase, albertomontesg, Moritz-Schmidt, palazzem
5
- Author-email: Chris Jewell <chrism0dwk@gmail.com>, "w.malgadey" <w.malgadey@gmail.com>
5
+ Author-email: Chris Jewell <chrism0dwk@gmail.com>, "w.malgadey" <w.malgadey@gmail.com>, FilBr <filippo.barba@protonmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
7
7
  Version 3, 29 June 2007
8
8
 
@@ -282,7 +282,7 @@ class Http:
282
282
  f"Unknown error while refreshing token with status code {response.status_code}"
283
283
  )
284
284
 
285
- def _login(self) -> tuple[int, bool, str] | None:
285
+ def _login(self) -> tuple[int, str] | None:
286
286
 
287
287
  headers = self._headers
288
288
  headers["Content-Type"] = "application/json"
@@ -56,7 +56,7 @@ class TadoX(Tado):
56
56
  # set to None until explicitly set
57
57
  self._auto_geofencing_supported = None
58
58
 
59
- def _create_request(self) -> TadoRequest:
59
+ def _create_x_request(self) -> TadoRequest:
60
60
  return TadoXRequest()
61
61
 
62
62
  def get_devices(self):
@@ -64,7 +64,7 @@ class TadoX(Tado):
64
64
  Gets device information.
65
65
  """
66
66
 
67
- request = self._create_request()
67
+ request = self._create_x_request()
68
68
  request.command = "roomsAndDevices"
69
69
 
70
70
  rooms: list[dict[str, Any]] = self._http.request(request)["rooms"]
@@ -77,7 +77,7 @@ class TadoX(Tado):
77
77
  Gets zones information.
78
78
  """
79
79
 
80
- request = self._create_request()
80
+ request = self._create_x_request()
81
81
  request.command = "roomsAndDevices"
82
82
 
83
83
  return self._http.request(request)["rooms"]
@@ -94,7 +94,7 @@ class TadoX(Tado):
94
94
  Gets current states of all zones.
95
95
  """
96
96
 
97
- request = self._create_request()
97
+ request = self._create_x_request()
98
98
  request.command = "rooms"
99
99
 
100
100
  return self._http.request(request)
@@ -104,7 +104,7 @@ class TadoX(Tado):
104
104
  Gets current state of Zone.
105
105
  """
106
106
 
107
- request = self._create_request()
107
+ request = self._create_x_request()
108
108
  request.command = f"rooms/{zone:d}"
109
109
  data = self._http.request(request)
110
110
 
@@ -150,7 +150,7 @@ class TadoX(Tado):
150
150
  Zone has 3 different schedules, one for each timetable (see setTimetable)
151
151
  """
152
152
 
153
- request = self._create_request()
153
+ request = self._create_x_request()
154
154
  request.command = f"rooms/{zone:d}/schedule"
155
155
 
156
156
  return self._http.request(request)
@@ -160,7 +160,7 @@ class TadoX(Tado):
160
160
  Set the schedule for a zone, day is required
161
161
  """
162
162
 
163
- request = self._create_request()
163
+ request = self._create_x_request()
164
164
  request.command = f"rooms/{zone:d}/schedule"
165
165
  request.action = Action.SET
166
166
  request.payload = data
@@ -173,7 +173,7 @@ class TadoX(Tado):
173
173
  Delete current overlay
174
174
  """
175
175
 
176
- request = self._create_request()
176
+ request = self._create_x_request()
177
177
  request.command = f"rooms/{zone:d}/resumeSchedule"
178
178
  request.action = Action.SET
179
179
 
@@ -213,7 +213,7 @@ class TadoX(Tado):
213
213
  if duration is not None:
214
214
  post_data["termination"]["durationInSeconds"] = duration
215
215
 
216
- request = self._create_request()
216
+ request = self._create_x_request()
217
217
  request.command = f"rooms/{zone:d}/manualControl"
218
218
  request.action = Action.SET
219
219
  request.payload = post_data
@@ -236,7 +236,7 @@ class TadoX(Tado):
236
236
 
237
237
  data = self.get_state(zone)
238
238
 
239
- if "activated" in data["openWindow"]:
239
+ if data["openWindow"] and "activated" in data["openWindow"]:
240
240
  return {"openWindowDetected": True}
241
241
  else:
242
242
  return {"openWindowDetected": False}
@@ -275,7 +275,7 @@ class TadoX(Tado):
275
275
  Set the Temperature offset on the device.
276
276
  """
277
277
 
278
- request = self._create_request()
278
+ request = self._create_x_request()
279
279
  request.command = f"roomsAndDevices/devices/{device_id}"
280
280
  request.action = Action.CHANGE
281
281
  request.payload = {"temperatureOffset": offset}
@@ -4,11 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-tado"
7
- version = "0.18.2"
7
+ version = "0.18.3"
8
8
  description = "PyTado from chrism0dwk, modfied by w.malgadey, diplix, michaelarnauts, LenhartStephan, splifter, syssi, andersonshatch, Yippy, p0thi, Coffee2CodeNL, chiefdragon, FilBr, nikilase, albertomontesg, Moritz-Schmidt, palazzem"
9
9
  authors = [
10
10
  { name = "Chris Jewell", email = "chrism0dwk@gmail.com" },
11
11
  { name = "w.malgadey", email = "w.malgadey@gmail.com" },
12
+ { name = "FilBr", email = "filippo.barba@protonmail.com" },
12
13
  ]
13
14
  dependencies = ["requests"]
14
15
  requires-python = ">=3.11"
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-tado
3
- Version: 0.18.2
3
+ Version: 0.18.3
4
4
  Summary: PyTado from chrism0dwk, modfied by w.malgadey, diplix, michaelarnauts, LenhartStephan, splifter, syssi, andersonshatch, Yippy, p0thi, Coffee2CodeNL, chiefdragon, FilBr, nikilase, albertomontesg, Moritz-Schmidt, palazzem
5
- Author-email: Chris Jewell <chrism0dwk@gmail.com>, "w.malgadey" <w.malgadey@gmail.com>
5
+ Author-email: Chris Jewell <chrism0dwk@gmail.com>, "w.malgadey" <w.malgadey@gmail.com>, FilBr <filippo.barba@protonmail.com>
6
6
  License: GNU GENERAL PUBLIC LICENSE
7
7
  Version 3, 29 June 2007
8
8
 
File without changes
File without changes
File without changes
File without changes