Skip to content

Commit eef6dc2

Browse files
committed
Update/rearrance testassert
1 parent c2e2556 commit eef6dc2

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

tests/test_smile.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3863,6 +3863,18 @@ async def test_connect_p1v3_full_option(self):
38633863
async def test_connect_anna_heatpump_heating(self):
38643864
"""Test an Anna with Elga, cooling-mode off, in heating mode."""
38653865
testdata = {
3866+
"015ae9ea3f964e668e490fa39da3870b": {
3867+
"dev_class": "gateway",
3868+
"firmware": "4.0.15",
3869+
"hardware": "AME Smile 2.0 board",
3870+
"location": "a57efe5f145f498c9be62a9b63626fbf",
3871+
"mac_address": "012345670001",
3872+
"model": "Gateway",
3873+
"name": "Smile Anna",
3874+
"vendor": "Plugwise",
3875+
"binary_sensors": {"plugwise_notification": False},
3876+
"sensors": {"outdoor_temperature": 20.2},
3877+
},
38663878
"1cbf783bb11e4a7c8a6843dee3a86927": {
38673879
"dev_class": "heater_central",
38683880
"location": "a57efe5f145f498c9be62a9b63626fbf",
@@ -3901,18 +3913,6 @@ async def test_connect_anna_heatpump_heating(self):
39013913
},
39023914
"switches": {"dhw_cm_switch": False},
39033915
},
3904-
"015ae9ea3f964e668e490fa39da3870b": {
3905-
"dev_class": "gateway",
3906-
"firmware": "4.0.15",
3907-
"hardware": "AME Smile 2.0 board",
3908-
"location": "a57efe5f145f498c9be62a9b63626fbf",
3909-
"mac_address": "012345670001",
3910-
"model": "Gateway",
3911-
"name": "Smile Anna",
3912-
"vendor": "Plugwise",
3913-
"binary_sensors": {"plugwise_notification": False},
3914-
"sensors": {"outdoor_temperature": 20.2},
3915-
},
39163916
"3cb70739631c4d17a86b8b12e8a5161b": {
39173917
"dev_class": "thermostat",
39183918
"firmware": "2018-02-08T11:15:53+01:00",
@@ -3921,6 +3921,12 @@ async def test_connect_anna_heatpump_heating(self):
39213921
"model": "ThermoTouch",
39223922
"name": "Anna",
39233923
"vendor": "Plugwise",
3924+
"temperature_offset": {
3925+
'lower_bound': -2.0,
3926+
'resolution': 0.1,
3927+
'upper_bound': 2.0,
3928+
'setpoint': -0.5
3929+
},
39243930
"thermostat": {
39253931
"setpoint": 20.5,
39263932
"lower_bound": 4.0,
@@ -3966,6 +3972,7 @@ async def test_connect_anna_heatpump_heating(self):
39663972
},
39673973
"sensors": {
39683974
"water_temperature": 29.1,
3975+
"domestic_hot_water_setpoint": 60.0,
39693976
"dhw_temperature": 46.3,
39703977
"intended_boiler_temperature": 35.0,
39713978
"modulation_level": 52,
@@ -3991,7 +3998,7 @@ async def test_connect_anna_heatpump_heating(self):
39913998

39923999
await self.device_test(smile, "2020-04-12 00:00:01", testdata)
39934000
assert smile.gateway_id == "015ae9ea3f964e668e490fa39da3870b"
3994-
assert self.device_items == 64
4001+
assert self.device_items == 61
39954002
assert not self.cooling_present
39964003
assert not self.notifications
39974004

0 commit comments

Comments
 (0)