Skip to content

Commit 4604c8e

Browse files
committed
Add more test asserts covering all variations
1 parent c3dac2e commit 4604c8e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_smile.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,11 @@ async def test_connect_anna_v4(self):
935935
await self.device_test(smile, testdata)
936936
assert not self.notifications
937937

938+
assert not smile._anna_cooling_present
939+
assert smile.anna_cool_ena_indication is None
940+
assert not smile._anna_cooling_derived
941+
assert not smile.anna_cooling_enabled
942+
938943
result = await self.tinker_thermostat(
939944
smile,
940945
"eb5309212bf5407bb143e5bfa3b18aee",
@@ -3033,6 +3038,11 @@ async def test_connect_anna_heatpump_heating(self):
30333038
assert self.cooling_present
30343039
assert not self.notifications
30353040

3041+
assert smile._anna_cooling_present
3042+
assert not smile.anna_cool_ena_indication
3043+
assert not smile._anna_cooling_derived
3044+
assert not smile.anna_cooling_enabled
3045+
30363046
await smile.close_connection()
30373047
await self.disconnect(server, client)
30383048

@@ -3091,6 +3101,11 @@ async def test_connect_anna_heatpump_cooling(self):
30913101
assert self.cooling_present
30923102
assert not self.notifications
30933103

3104+
assert smile._anna_cooling_present
3105+
assert not smile.anna_cool_ena_indication
3106+
assert smile._anna_cooling_derived
3107+
assert not smile.anna_cooling_enabled
3108+
30943109
await smile.close_connection()
30953110
await self.disconnect(server, client)
30963111

0 commit comments

Comments
 (0)