Skip to content

Commit 0fc35b0

Browse files
committed
Add test-case covering latest Anna cooling firmware
1 parent 1d3826e commit 0fc35b0

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

tests/test_smile.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,6 +3094,47 @@ async def test_connect_anna_heatpump_cooling(self):
30943094
await smile.close_connection()
30953095
await self.disconnect(server, client)
30963096

3097+
@pytest.mark.asyncio
3098+
async def test_connect_anna_heatpump_cooling_fake_firmware(self):
3099+
"""
3100+
Test an Anna with Elga setup in cooling mode.
3101+
This test also covers the situation that the operation-mode it switched
3102+
from heating to cooliing due to the outdoor temperature rising above the
3103+
cooling_activation_outdoor_temperature threshold.
3104+
"""
3105+
testdata = {
3106+
# Heater central
3107+
"1cbf783bb11e4a7c8a6843dee3a86927": {
3108+
"binary_sensors": {
3109+
"cooling_state": True,
3110+
"dhw_state": False,
3111+
"heating_state": False,
3112+
},
3113+
"sensors": {
3114+
"modulation_level": 100,
3115+
},
3116+
},
3117+
# Gateway
3118+
"015ae9ea3f964e668e490fa39da3870b": {
3119+
"firmware": "4.10.10",
3120+
},
3121+
}
3122+
3123+
self.smile_setup = "anna_heatpump_cooling_fake_firmware"
3124+
server, smile, client = await self.connect_wrapper()
3125+
assert smile.smile_hostname == "smile000000"
3126+
3127+
_LOGGER.info("Basics:")
3128+
_LOGGER.info(" # Assert type = thermostat")
3129+
assert smile.smile_type == "thermostat"
3130+
_LOGGER.info(" # Assert version")
3131+
assert smile.smile_version[0] == "4.10.10"
3132+
3133+
await self.device_test(smile, testdata)
3134+
3135+
await smile.close_connection()
3136+
await self.disconnect(server, client)
3137+
30973138
@pytest.mark.asyncio
30983139
async def test_connect_anna_heatpump_cooling_to_off(self):
30993140
"""

0 commit comments

Comments
 (0)