aioWiserHeatAPI 1.7.12__tar.gz → 1.7.13__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.
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/PKG-INFO +1 -1
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/__init__.py +1 -1
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/rest_controller.py +2 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/room.py +41 -16
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/wiserhub.py +4 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/PKG-INFO +1 -1
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/SOURCES.txt +1 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_heating_state.py +9 -0
- aiowiserheatapi-1.7.13/tests/test_passive_away.py +107 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/LICENSE +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/README.md +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/automation.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/binary_sensor.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/boiler_interface.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/button_panel.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/cli.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/const.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/devices.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/discovery.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/equipments.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/evse.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/exceptions.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/heating.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/heating_actuator.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/__init__.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/automations.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/battery.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/capabilities.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/cloud.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/device.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/equipment.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/extra_config.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/firmware.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/gps.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/misc.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/network.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/opentherm.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/signal.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/special_times.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/status.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/tariffs.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/temp.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/threshold.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/uiconfiguration.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/version.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/weather.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/zigbee.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/hot_water.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/light.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/moments.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/ptc.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/pte.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/refactor.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/roomstat.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/schedule.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/shutter.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/smartplug.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/smartvalve.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/smokealarm.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/system.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/temp_humidity.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/ufh.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/dependency_links.txt +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/entry_points.txt +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/requires.txt +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/top_level.txt +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/setup.cfg +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/setup.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_device_notifications.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_equipment.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_equipments.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_evse.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_heating_actuator.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_light.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_ptc.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_rest_controller.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_rest_payloads.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_schedule.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_smart_schedule.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_smartplug.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_tariffs.py +0 -0
- {aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/tests/test_weather.py +0 -0
|
@@ -44,6 +44,8 @@ class WiserAPIParams:
|
|
|
44
44
|
boost_temp_delta: int = DEFAULT_BOOST_DELTA
|
|
45
45
|
hw_climate_mode: bool = False
|
|
46
46
|
opentherm_ever_connected: bool = False
|
|
47
|
+
passive_mode_disable_when_away: bool = False
|
|
48
|
+
away_mode_target_temperature: float = 5.0
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
# Connection info class
|
|
@@ -132,7 +132,10 @@ class _WiserRoom(object):
|
|
|
132
132
|
and self.passive_mode_enabled
|
|
133
133
|
and self.mode != WiserHeatingModeEnum.off.value
|
|
134
134
|
and not self.is_boosted
|
|
135
|
-
and not
|
|
135
|
+
and not (
|
|
136
|
+
self.is_away_mode
|
|
137
|
+
and self._wiser_rest_controller._api_parameters.passive_mode_disable_when_away
|
|
138
|
+
)
|
|
136
139
|
else False
|
|
137
140
|
)
|
|
138
141
|
|
|
@@ -151,6 +154,12 @@ class _WiserRoom(object):
|
|
|
151
154
|
|
|
152
155
|
@property
|
|
153
156
|
def passive_mode_lower_temp(self) -> float:
|
|
157
|
+
if self.is_passive_mode and self.is_away_mode:
|
|
158
|
+
return (
|
|
159
|
+
self._wiser_rest_controller._api_parameters.away_mode_target_temperature
|
|
160
|
+
if self._passive_uses_temperature_limiter
|
|
161
|
+
else TEMP_MINIMUM
|
|
162
|
+
)
|
|
154
163
|
provider = (
|
|
155
164
|
self._wiser_rest_controller._api_parameters.passive_mode_lower_temp_provider
|
|
156
165
|
)
|
|
@@ -178,6 +187,34 @@ class _WiserRoom(object):
|
|
|
178
187
|
|
|
179
188
|
@property
|
|
180
189
|
def passive_mode_upper_temp(self) -> float:
|
|
190
|
+
if self.is_passive_mode and self.is_away_mode:
|
|
191
|
+
away_temperature = (
|
|
192
|
+
self._wiser_rest_controller._api_parameters.away_mode_target_temperature
|
|
193
|
+
)
|
|
194
|
+
if not self._passive_uses_temperature_limiter:
|
|
195
|
+
return away_temperature
|
|
196
|
+
return max(away_temperature, self._passive_mode_home_upper_temp)
|
|
197
|
+
return self._passive_mode_home_upper_temp
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def _passive_uses_temperature_limiter(self) -> bool:
|
|
201
|
+
"""Return the strategy for Auto or Manual Passive control."""
|
|
202
|
+
provider = (
|
|
203
|
+
self._wiser_rest_controller._api_parameters.passive_mode_temperature_limiter_provider
|
|
204
|
+
)
|
|
205
|
+
if provider is not None:
|
|
206
|
+
try:
|
|
207
|
+
return bool(provider(self))
|
|
208
|
+
except Exception:
|
|
209
|
+
_LOGGER.warning(
|
|
210
|
+
"Ignoring invalid Passive Mode temperature limiter for %s",
|
|
211
|
+
self.name,
|
|
212
|
+
exc_info=True,
|
|
213
|
+
)
|
|
214
|
+
return False
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
def _passive_mode_home_upper_temp(self) -> float:
|
|
181
218
|
provider = (
|
|
182
219
|
self._wiser_rest_controller._api_parameters.passive_mode_upper_temp_provider
|
|
183
220
|
)
|
|
@@ -237,23 +274,11 @@ class _WiserRoom(object):
|
|
|
237
274
|
@property
|
|
238
275
|
def _auto_uses_scheduled_passive_lower_temp(self) -> bool:
|
|
239
276
|
"""Return whether an external limiter owns the Auto schedule target."""
|
|
240
|
-
|
|
241
|
-
self._wiser_rest_controller._api_parameters.passive_mode_temperature_limiter_provider
|
|
242
|
-
)
|
|
243
|
-
if (
|
|
277
|
+
return (
|
|
244
278
|
self.mode == WiserHeatingModeEnum.auto.value
|
|
245
279
|
and self.schedule is not None
|
|
246
|
-
and
|
|
247
|
-
)
|
|
248
|
-
try:
|
|
249
|
-
return bool(provider(self))
|
|
250
|
-
except Exception:
|
|
251
|
-
_LOGGER.warning(
|
|
252
|
-
"Ignoring invalid Passive Mode temperature limiter for %s",
|
|
253
|
-
self.name,
|
|
254
|
-
exc_info=True,
|
|
255
|
-
)
|
|
256
|
-
return False
|
|
280
|
+
and self._passive_uses_temperature_limiter
|
|
281
|
+
)
|
|
257
282
|
|
|
258
283
|
@property
|
|
259
284
|
def passive_lower_limit_follows_schedule(self) -> bool:
|
|
@@ -299,6 +299,10 @@ class WiserAPI:
|
|
|
299
299
|
self.api_parameters.opentherm_ever_connected,
|
|
300
300
|
)
|
|
301
301
|
|
|
302
|
+
self.api_parameters.away_mode_target_temperature = (
|
|
303
|
+
self._system.away_mode_target_temperature
|
|
304
|
+
)
|
|
305
|
+
|
|
302
306
|
# Schedules Collection
|
|
303
307
|
self._schedules = _WiserScheduleCollection(
|
|
304
308
|
self._wiser_rest_controller,
|
|
@@ -285,6 +285,15 @@ class HeatingRefreshTest(unittest.IsolatedAsyncioTestCase):
|
|
|
285
285
|
self.assertTrue(self.hub.rooms.get_by_id(1).is_heating)
|
|
286
286
|
self.assertIsNotNone(self.hub.heating_channels)
|
|
287
287
|
|
|
288
|
+
async def test_passive_away_temperature_follows_each_hub_refresh(self):
|
|
289
|
+
for temperature in (100, 120):
|
|
290
|
+
self.domain["System"]["AwayModeSetPointLimit"] = temperature
|
|
291
|
+
await self.hub.read_hub_data()
|
|
292
|
+
self.assertEqual(
|
|
293
|
+
self.hub.api_parameters.away_mode_target_temperature,
|
|
294
|
+
temperature / 10,
|
|
295
|
+
)
|
|
296
|
+
|
|
288
297
|
async def test_relay_hub_does_not_poll_opentherm(self):
|
|
289
298
|
await self.hub.read_hub_data()
|
|
290
299
|
calls = [
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"""Passive control uses Away limits only while Away owns a room's setpoint."""
|
|
2
|
+
|
|
3
|
+
from types import SimpleNamespace
|
|
4
|
+
import unittest
|
|
5
|
+
from unittest.mock import AsyncMock
|
|
6
|
+
|
|
7
|
+
from aioWiserHeatAPI.helpers.automations import _WiserHeatingChannelAutomations
|
|
8
|
+
from aioWiserHeatAPI.rest_controller import WiserAPIParams
|
|
9
|
+
from aioWiserHeatAPI.room import _WiserRoom
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PassiveAwayTest(unittest.IsolatedAsyncioTestCase):
|
|
13
|
+
def setUp(self):
|
|
14
|
+
self.params = WiserAPIParams(away_mode_target_temperature=10)
|
|
15
|
+
self.controller = SimpleNamespace(
|
|
16
|
+
_api_parameters=self.params,
|
|
17
|
+
_extra_config=SimpleNamespace(
|
|
18
|
+
config=lambda *_: {"passive_mode": True, "min": 16, "max": 22}
|
|
19
|
+
),
|
|
20
|
+
)
|
|
21
|
+
self.room = _WiserRoom(
|
|
22
|
+
self.controller,
|
|
23
|
+
{"id": 1, "Name": "Passive", "Mode": "Auto",
|
|
24
|
+
"DisplayedSetPoint": 100, "CalculatedTemperature": 175,
|
|
25
|
+
"SetpointOrigin": "Away"},
|
|
26
|
+
SimpleNamespace(current_setting=20, _assignments=[]),
|
|
27
|
+
[], True,
|
|
28
|
+
)
|
|
29
|
+
self.room.set_target_temperature = AsyncMock(return_value=True)
|
|
30
|
+
|
|
31
|
+
def test_modulation_away_bounds_override_home_and_schedule_providers(self):
|
|
32
|
+
self.params.passive_mode_lower_temp_provider = lambda _: 17
|
|
33
|
+
self.params.passive_mode_upper_temp_provider = lambda _: 21
|
|
34
|
+
self.assertTrue(self.room.is_passive_mode)
|
|
35
|
+
self.assertEqual(self.room.passive_mode_lower_temp, 5)
|
|
36
|
+
self.assertEqual(self.room.passive_mode_upper_temp, 10)
|
|
37
|
+
self.room._data["SetpointOrigin"] = "FromSchedule"
|
|
38
|
+
self.assertEqual(self.room.passive_mode_lower_temp, 17)
|
|
39
|
+
self.assertEqual(self.room.passive_mode_upper_temp, 21)
|
|
40
|
+
|
|
41
|
+
def test_limiter_away_lower_and_valid_upper_range(self):
|
|
42
|
+
self.params.passive_mode_temperature_limiter_provider = lambda _: True
|
|
43
|
+
self.params.passive_mode_lower_temp_provider = lambda _: 17
|
|
44
|
+
self.params.passive_mode_upper_temp_provider = lambda _: 21
|
|
45
|
+
for away in (10, 25):
|
|
46
|
+
with self.subTest(away=away):
|
|
47
|
+
self.params.away_mode_target_temperature = away
|
|
48
|
+
self.assertEqual(self.room.passive_mode_lower_temp, away)
|
|
49
|
+
self.assertEqual(self.room.passive_mode_upper_temp, max(away, 21))
|
|
50
|
+
|
|
51
|
+
def test_disable_option_only_suspends_active_away_and_preserves_setting(self):
|
|
52
|
+
self.params.passive_mode_disable_when_away = True
|
|
53
|
+
for origin, active in (("Away", False), ("Away,Override", False),
|
|
54
|
+
("FromSchedule", True), ("Manual", True)):
|
|
55
|
+
with self.subTest(origin=origin):
|
|
56
|
+
self.room._data["SetpointOrigin"] = origin
|
|
57
|
+
self.assertEqual(self.room.is_passive_mode, active)
|
|
58
|
+
self.assertTrue(self.room.passive_mode_enabled)
|
|
59
|
+
|
|
60
|
+
def test_away_bounds_apply_in_manual_mode_without_schedule(self):
|
|
61
|
+
self.room._mode = "Manual"
|
|
62
|
+
self.room._schedule = None
|
|
63
|
+
self.assertEqual(self.room.passive_mode_lower_temp, 5)
|
|
64
|
+
self.assertEqual(self.room.passive_mode_upper_temp, 10)
|
|
65
|
+
self.params.passive_mode_temperature_limiter_provider = lambda _: True
|
|
66
|
+
self.assertEqual(self.room.passive_mode_lower_temp, 10)
|
|
67
|
+
self.assertEqual(self.room.passive_mode_upper_temp, 22)
|
|
68
|
+
|
|
69
|
+
def test_boost_off_and_disabled_room_still_suspend_passive(self):
|
|
70
|
+
self.room._data["SetpointOrigin"] = "Away,Boost"
|
|
71
|
+
self.assertFalse(self.room.is_passive_mode)
|
|
72
|
+
self.room._data["SetpointOrigin"] = "Away"
|
|
73
|
+
self.room._mode = "Off"
|
|
74
|
+
self.assertFalse(self.room.is_passive_mode)
|
|
75
|
+
self.room._mode = "Auto"
|
|
76
|
+
self.room._extra_config["passive_mode"] = False
|
|
77
|
+
self.assertFalse(self.room.is_passive_mode)
|
|
78
|
+
|
|
79
|
+
async def test_automation_targets_follow_away_strategy_and_demand(self):
|
|
80
|
+
for limiter in (False, True):
|
|
81
|
+
self.params.passive_mode_temperature_limiter_provider = lambda _: limiter
|
|
82
|
+
for demand in (0, 50):
|
|
83
|
+
with self.subTest(limiter=limiter, demand=demand):
|
|
84
|
+
self.room.set_target_temperature.reset_mock()
|
|
85
|
+
self.room._data["DisplayedSetPoint"] = 180
|
|
86
|
+
channels = SimpleNamespace(
|
|
87
|
+
all=[SimpleNamespace(id=1, room_ids=[1, 2])],
|
|
88
|
+
_rooms=SimpleNamespace(all=[
|
|
89
|
+
self.room,
|
|
90
|
+
SimpleNamespace(id=2, name="Active", is_passive_mode=False,
|
|
91
|
+
percentage_demand=demand),
|
|
92
|
+
]),
|
|
93
|
+
)
|
|
94
|
+
await _WiserHeatingChannelAutomations(
|
|
95
|
+
self.controller, channels
|
|
96
|
+
).run_automations()
|
|
97
|
+
expected = 10 if limiter or demand else 5
|
|
98
|
+
self.room.set_target_temperature.assert_awaited_once_with(expected)
|
|
99
|
+
|
|
100
|
+
async def test_disabled_away_is_left_to_hub(self):
|
|
101
|
+
self.params.passive_mode_disable_when_away = True
|
|
102
|
+
channels = SimpleNamespace(
|
|
103
|
+
all=[SimpleNamespace(id=1, room_ids=[1])],
|
|
104
|
+
_rooms=SimpleNamespace(all=[self.room]),
|
|
105
|
+
)
|
|
106
|
+
await _WiserHeatingChannelAutomations(self.controller, channels).run_automations()
|
|
107
|
+
self.room.set_target_temperature.assert_not_awaited()
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI/helpers/uiconfiguration.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aiowiserheatapi-1.7.12 → aiowiserheatapi-1.7.13}/aioWiserHeatAPI.egg-info/dependency_links.txt
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|