Skip to content

Commit 8a22c82

Browse files
committed
Add new testcase
1 parent 9cac475 commit 8a22c82

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/test_adam.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TestPlugwiseAdam(TestPlugwise): # pylint: disable=attribute-defined-outsi
1818

1919
@pytest.mark.asyncio
2020
async def test_connect_adam_plus_anna_new(self):
21-
"""Test extended Adam (firmware 3.8) with Anna and a switch-group setup."""
21+
"""Test extended Adam (firmware 3.7) with Anna and a switch-group setup."""
2222
self.smile_setup = "adam_plus_anna_new"
2323

2424
testdata = self.load_testdata(SMILE_TYPE, self.smile_setup)
@@ -167,6 +167,17 @@ async def test_connect_adam_plus_anna_new(self):
167167
await smile.close_connection()
168168
await self.disconnect(server, client)
169169

170+
@pytest.mark.asyncio
171+
async def test_connect_adam_plus_anna_new_regulation_off(self):
172+
"""Test regultaion_mode off with control_state key missing for Adam."""
173+
self.smile_setup = "adam_plus_anna_new_regulation_mode_off"
174+
175+
testdata = self.load_testdata(SMILE_TYPE, self.smile_setup)
176+
server, smile, client = await self.connect_wrapper()
177+
assert smile.smile_hostname == "smile000000"
178+
179+
await self.device_test(smile, "2023-12-17 00:00:01", testdata)
180+
170181
@pytest.mark.asyncio
171182
async def test_connect_adam_zone_per_device(self):
172183
"""Test an extensive setup of Adam with a zone per device."""

0 commit comments

Comments
 (0)