Skip to content

Commit adfe2b6

Browse files
committed
Better guarding
1 parent c03e4d6 commit adfe2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_smile.py

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

391-
if extra["heater_id"]:
391+
if "heater_id" in extra:
392392
self.cooling_present = extra["cooling_present"]
393393
self.notifications = extra["notifications"]
394394
self._write_json("all_data", data)

0 commit comments

Comments
 (0)