Skip to content

Commit c6c16da

Browse files
committed
Complete new test-case
1 parent 3953073 commit c6c16da

File tree

1 file changed

+91
-3
lines changed

1 file changed

+91
-3
lines changed

tests/test_smile.py

Lines changed: 91 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4821,7 +4821,96 @@ async def test_connect_anna_loria_cooling_active(self):
48214821
@pytest.mark.asyncio
48224822
async def test_connect_anna_loria_driessens(self):
48234823
"""Test an Anna with a Loria in heating mode - state idle."""
4824-
testdata = {}
4824+
testdata = {
4825+
"5c118b1842e943c0a5b6ef88a60bb17a": {
4826+
"binary_sensors": {"plugwise_notification": False},
4827+
"dev_class": "gateway",
4828+
"firmware": "4.4.1",
4829+
"hardware": "AME Smile 2.0 board",
4830+
"location": "82c15f65c9bf44c592d69e16139355e3",
4831+
"mac_address": "D40FB2011556",
4832+
"model": "Gateway",
4833+
"name": "Smile Anna",
4834+
"sensors": {"outdoor_temperature": 6.81},
4835+
"vendor": "Plugwise",
4836+
},
4837+
"9fb768d699e44c7fb5cc50309dc4e7d4": {
4838+
"active_preset": "home",
4839+
"available_schedules": [
4840+
"Verwarmen@9-23u",
4841+
"VAKANTIE (winter)",
4842+
"VERWARMEN",
4843+
"KOELEN",
4844+
"off",
4845+
],
4846+
"dev_class": "thermostat",
4847+
"firmware": "2018-02-08T11:15:53+01:00",
4848+
"hardware": "6539-1301-5002",
4849+
"location": "fa70e08550c94de3a34feb27ecf31421",
4850+
"mode": "auto",
4851+
"model": "ThermoTouch",
4852+
"name": "Anna",
4853+
"preset_modes": ["no_frost", "asleep", "vacation", "away", "home"],
4854+
"select_schedule": "Verwarmen@9-23u",
4855+
"sensors": {
4856+
"illuminance": 5.5,
4857+
"setpoint_high": 30.0,
4858+
"setpoint_low": 20.0,
4859+
"temperature": 21.2,
4860+
},
4861+
"temperature_offset": {
4862+
"lower_bound": -2.0,
4863+
"resolution": 0.1,
4864+
"setpoint": 0.0,
4865+
"upper_bound": 2.0,
4866+
},
4867+
"thermostat": {
4868+
"lower_bound": 4.0,
4869+
"resolution": 0.1,
4870+
"setpoint_high": 30.0,
4871+
"setpoint_low": 20.0,
4872+
"upper_bound": 30.0,
4873+
},
4874+
"vendor": "Plugwise",
4875+
},
4876+
"a449cbc334ae4a5bb7f89064984b2906": {
4877+
"available": True,
4878+
"binary_sensors": {
4879+
"cooling_state": False,
4880+
"dhw_state": False,
4881+
"flame_state": False,
4882+
"heating_state": False,
4883+
},
4884+
"dev_class": "heater_central",
4885+
"dhw_modes": ["comfort", "eco", "off", "boost", "auto"],
4886+
"location": "82c15f65c9bf44c592d69e16139355e3",
4887+
"max_dhw_temperature": {
4888+
"lower_bound": 35.0,
4889+
"resolution": 0.01,
4890+
"setpoint": 53.0,
4891+
"upper_bound": 60.0,
4892+
},
4893+
"maximum_boiler_temperature": {
4894+
"lower_bound": 25.0,
4895+
"resolution": 0.01,
4896+
"setpoint": 45.0,
4897+
"upper_bound": 45.0,
4898+
},
4899+
"model": "173",
4900+
"name": "OpenTherm",
4901+
"select_dhw_mode": "auto",
4902+
"sensors": {
4903+
"dhw_temperature": 49.5,
4904+
"intended_boiler_temperature": 0.0,
4905+
"modulation_level": 0.0,
4906+
"outdoor_air_temperature": 7.63,
4907+
"return_temperature": 23.0,
4908+
"water_temperature": 23.3,
4909+
},
4910+
"switches": {"cooling_ena_switch": False, "dhw_cm_switch": True},
4911+
"vendor": "Atlantic",
4912+
},
4913+
}
48254914
self.smile_setup = "anna_loria_driessens"
48264915
server, smile, client = await self.connect_wrapper()
48274916
assert smile.smile_hostname == "smile000000"
@@ -4831,8 +4920,7 @@ async def test_connect_anna_loria_driessens(self):
48314920
assert smile.smile_type == "thermostat"
48324921

48334922
await self.device_test(smile, "2022-05-16 00:00:01", testdata)
4834-
# assert smile._last_active["15da035090b847e7a21f93e08c015ebc"] == "Winter"
4835-
# assert smile.device_items == 63
4923+
assert smile.device_items == 63
48364924
assert smile._cooling_present
48374925
assert not smile._cooling_enabled
48384926

0 commit comments

Comments
 (0)