pytouchlinesl 0.1.9__tar.gz → 0.2.0__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 (22) hide show
  1. {pytouchlinesl-0.1.9/pytouchlinesl.egg-info → pytouchlinesl-0.2.0}/PKG-INFO +1 -1
  2. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pyproject.toml +1 -1
  3. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/zone.py +15 -0
  4. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0/pytouchlinesl.egg-info}/PKG-INFO +1 -1
  5. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/tests/test_zone.py +2 -0
  6. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/LICENSE +0 -0
  7. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/README.md +0 -0
  8. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/__init__.py +0 -0
  9. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/client/__init__.py +0 -0
  10. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/client/base.py +0 -0
  11. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/client/client.py +0 -0
  12. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/client/models/__init__.py +0 -0
  13. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/client/models/models.py +0 -0
  14. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/module.py +0 -0
  15. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl/touchlinesl.py +0 -0
  16. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl.egg-info/SOURCES.txt +0 -0
  17. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl.egg-info/dependency_links.txt +0 -0
  18. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl.egg-info/requires.txt +0 -0
  19. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/pytouchlinesl.egg-info/top_level.txt +0 -0
  20. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/setup.cfg +0 -0
  21. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/tests/test_module.py +0 -0
  22. {pytouchlinesl-0.1.9 → pytouchlinesl-0.2.0}/tests/test_touchlinesl.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytouchlinesl
3
- Version: 0.1.9
3
+ Version: 0.2.0
4
4
  Summary: An API client for Roth's TouchlineSL control system.
5
5
  Author-email: Jon Seager <jon@sgrs.uk>
6
6
  Project-URL: Homepage, https://github.com/jnsgruk/pytouchlinesl
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytouchlinesl"
3
- version = "0.1.9"
3
+ version = "0.2.0"
4
4
  authors = [{ name = "Jon Seager", email = "jon@sgrs.uk" }]
5
5
  description = "An API client for Roth's TouchlineSL control system."
6
6
  readme = "README.md"
@@ -122,6 +122,21 @@ class Zone:
122
122
  """Return the zone's current algorithm, either `heating` or `cooling`."""
123
123
  return self._raw_data.zone.flags.algorithm
124
124
 
125
+ @property
126
+ def signal_strength(self) -> int | None:
127
+ """Return the signal strength of the zone."""
128
+ return self._raw_data.zone.signal_strength
129
+
130
+ @property
131
+ def alarm(self) -> Literal["sensor_damaged", "no_communication"] | None:
132
+ """Return the alarm state of the zone."""
133
+ state = self._raw_data.zone.zone_state
134
+ if state == "sensorDamaged":
135
+ return "sensor_damaged"
136
+ elif state == "noCommunication":
137
+ return "no_communication"
138
+ return None
139
+
125
140
  async def set_temperature(self, temperature: float):
126
141
  """Set a constant target temperature for the zone."""
127
142
  await self._client.set_zone_temperature(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytouchlinesl
3
- Version: 0.1.9
3
+ Version: 0.2.0
4
4
  Summary: An API client for Roth's TouchlineSL control system.
5
5
  Author-email: Jon Seager <jon@sgrs.uk>
6
6
  Project-URL: Homepage, https://github.com/jnsgruk/pytouchlinesl
@@ -8,6 +8,8 @@ test_attrs = [
8
8
  ("enabled", True),
9
9
  ("relay_on", True),
10
10
  ("algorithm", "heating"),
11
+ ("signal_strength", 53),
12
+ ("alarm", None),
11
13
  ]
12
14
 
13
15
 
File without changes
File without changes
File without changes