pytouchlinesl 0.1.7__tar.gz → 0.1.9__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.
- {pytouchlinesl-0.1.7/pytouchlinesl.egg-info → pytouchlinesl-0.1.9}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pyproject.toml +1 -1
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/client/models/models.py +22 -20
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/zone.py +10 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9/pytouchlinesl.egg-info}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/tests/test_zone.py +2 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/LICENSE +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/README.md +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/__init__.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/client/__init__.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/client/base.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/client/client.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/client/models/__init__.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/module.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl/touchlinesl.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl.egg-info/SOURCES.txt +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl.egg-info/dependency_links.txt +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl.egg-info/requires.txt +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/pytouchlinesl.egg-info/top_level.txt +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/setup.cfg +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/tests/test_module.py +0 -0
- {pytouchlinesl-0.1.7 → pytouchlinesl-0.1.9}/tests/test_touchlinesl.py +0 -0
|
@@ -15,7 +15,7 @@ except ImportError:
|
|
|
15
15
|
class ZoneFlagsModel(BaseModel):
|
|
16
16
|
relay_state: str = Field(..., alias="relayState")
|
|
17
17
|
min_one_window_open: bool = Field(..., alias="minOneWindowOpen")
|
|
18
|
-
algorithm:
|
|
18
|
+
algorithm: Literal["heating", "cooling"]
|
|
19
19
|
floor_sensor: int = Field(..., alias="floorSensor")
|
|
20
20
|
humidity_algorytm: int = Field(..., alias="humidityAlgorytm")
|
|
21
21
|
zone_excluded: int = Field(..., alias="zoneExcluded")
|
|
@@ -30,7 +30,9 @@ class ZoneAttributesModel(BaseModel):
|
|
|
30
30
|
current_temperature: Optional[int] = Field(..., alias="currentTemperature")
|
|
31
31
|
set_temperature: int = Field(..., alias="setTemperature")
|
|
32
32
|
flags: ZoneFlagsModel
|
|
33
|
-
zone_state: Literal[
|
|
33
|
+
zone_state: Literal[
|
|
34
|
+
"zoneOff", "noAlarm", "zoneUnregistered", "sensorDamaged", "noCommunication"
|
|
35
|
+
] = Field(..., alias="zoneState")
|
|
34
36
|
signal_strength: Optional[int] = Field(..., alias="signalStrength")
|
|
35
37
|
battery_level: Optional[int] = Field(..., alias="batteryLevel")
|
|
36
38
|
actuators_open: int = Field(..., alias="actuatorsOpen")
|
|
@@ -129,8 +131,8 @@ class ZonesModel(BaseModel):
|
|
|
129
131
|
class ParamsModel(BaseModel):
|
|
130
132
|
description: Optional[str]
|
|
131
133
|
working_status: Optional[bool] = Field(None, alias="workingStatus")
|
|
132
|
-
txt_id: Optional[int] = Field(
|
|
133
|
-
icon_id: Optional[int] = Field(
|
|
134
|
+
txt_id: Optional[int] = Field(None, alias="txtId")
|
|
135
|
+
icon_id: Optional[int] = Field(None, alias="iconId")
|
|
134
136
|
version: Optional[str] = None
|
|
135
137
|
company_id: Optional[int] = Field(None, alias="companyId")
|
|
136
138
|
controller_name: Optional[str] = Field(None, alias="controllerName")
|
|
@@ -149,9 +151,9 @@ class TileModel(BaseModel):
|
|
|
149
151
|
|
|
150
152
|
class ModuleModel(BaseModel):
|
|
151
153
|
zones: ZonesModel
|
|
152
|
-
tiles: Optional[List[TileModel]]
|
|
153
|
-
tiles_order: Optional[Any] = Field(
|
|
154
|
-
tiles_last_update: Optional[str] = Field(
|
|
154
|
+
tiles: Optional[List[TileModel]] = []
|
|
155
|
+
tiles_order: Optional[Any] = Field(None, alias="tilesOrder")
|
|
156
|
+
tiles_last_update: Optional[str] = Field(None, alias="tilesLastUpdate")
|
|
155
157
|
|
|
156
158
|
|
|
157
159
|
class AccountModuleModel(BaseModel):
|
|
@@ -160,17 +162,17 @@ class AccountModuleModel(BaseModel):
|
|
|
160
162
|
name: str
|
|
161
163
|
email: str
|
|
162
164
|
type: str
|
|
163
|
-
controller_status: Optional[str] = Field(
|
|
164
|
-
module_status: Optional[str] = Field(
|
|
165
|
-
additional_information: Optional[str] = Field(
|
|
166
|
-
phone_number: Optional[Any] = Field(
|
|
167
|
-
zip_code: Optional[str] = Field(
|
|
168
|
-
tag: Optional[str]
|
|
169
|
-
country: Optional[str]
|
|
170
|
-
gmt_id: Optional[int] = Field(
|
|
171
|
-
gmt_time: Optional[str] = Field(
|
|
172
|
-
postcode_policy_accepted: bool = Field(
|
|
173
|
-
style: Optional[str]
|
|
174
|
-
version: Optional[str]
|
|
175
|
-
company: Optional[str]
|
|
165
|
+
controller_status: Optional[str] = Field(None, alias="controllerStatus")
|
|
166
|
+
module_status: Optional[str] = Field(None, alias="moduleStatus")
|
|
167
|
+
additional_information: Optional[str] = Field(None, alias="additionalInformation")
|
|
168
|
+
phone_number: Optional[Any] = Field(None, alias="phoneNumber")
|
|
169
|
+
zip_code: Optional[str] = Field(None, alias="zipCode")
|
|
170
|
+
tag: Optional[str] = None
|
|
171
|
+
country: Optional[str] = None
|
|
172
|
+
gmt_id: Optional[int] = Field(None, alias="gmtId")
|
|
173
|
+
gmt_time: Optional[str] = Field(None, alias="gmtTime")
|
|
174
|
+
postcode_policy_accepted: bool = Field(None, alias="postcodePolicyAccepted")
|
|
175
|
+
style: Optional[str] = None
|
|
176
|
+
version: Optional[str] = None
|
|
177
|
+
company: Optional[str] = None
|
|
176
178
|
udid: str
|
|
@@ -112,6 +112,16 @@ class Zone:
|
|
|
112
112
|
|
|
113
113
|
return self._schedule
|
|
114
114
|
|
|
115
|
+
@property
|
|
116
|
+
def relay_on(self) -> bool:
|
|
117
|
+
"""Return whether or not the zone's relay is on."""
|
|
118
|
+
return self._raw_data.zone.flags.relay_state == "on"
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def algorithm(self) -> Literal["heating", "cooling"]:
|
|
122
|
+
"""Return the zone's current algorithm, either `heating` or `cooling`."""
|
|
123
|
+
return self._raw_data.zone.flags.algorithm
|
|
124
|
+
|
|
115
125
|
async def set_temperature(self, temperature: float):
|
|
116
126
|
"""Set a constant target temperature for the zone."""
|
|
117
127
|
await self._client.set_zone_temperature(
|
|
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
|