Skip to content

Commit 6f8154d

Browse files
committed
Add testcase
1 parent fc43c6a commit 6f8154d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_smile.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4818,6 +4818,27 @@ async def test_connect_anna_loria_cooling_active(self):
48184818
await smile.close_connection()
48194819
await self.disconnect(server, client)
48204820

4821+
@pytest.mark.asyncio
4822+
async def test_connect_anna_loria_driessens(self):
4823+
"""Test an Anna with a Loria in heating mode - state idle."""
4824+
testdata = {}
4825+
self.smile_setup = "Driessens"
4826+
server, smile, client = await self.connect_wrapper()
4827+
# assert smile.smile_hostname == "smile000000"
4828+
4829+
_LOGGER.info("Basics:")
4830+
_LOGGER.info(" # Assert type = thermostat")
4831+
assert smile.smile_type == "thermostat"
4832+
4833+
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
4836+
assert smile._cooling_present
4837+
assert not smile._cooling_enabled
4838+
4839+
await smile.close_connection()
4840+
await self.disconnect(server, client)
4841+
48214842
@pytest.mark.asyncio
48224843
async def test_connect_stretch_v31(self):
48234844
"""Test a legacy Stretch with firmware 3.1 setup."""

0 commit comments

Comments
 (0)