Skip to content

Commit 1819962

Browse files
committed
Guard for is_thermostat
1 parent 649d9e2 commit 1819962

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_smile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,10 @@ async def device_test(self, smile=pw_smile.Smile, testdata=None, preset=False):
388388
extra = data[0]
389389
device_list = data[1]
390390

391-
self.active_device_present = extra["active_device"]
392-
self.cooling_present = extra["cooling_present"]
393-
self.notifications = extra["notifications"]
391+
if extra["is_thermostat"]:
392+
self.active_device_present = extra["active_device"]
393+
self.cooling_present = extra["cooling_present"]
394+
self.notifications = extra["notifications"]
394395
self._write_json("all_data", data)
395396
self._write_json("notifications", extra["notifications"])
396397

0 commit comments

Comments
 (0)