Skip to content

Commit 40f6ea8

Browse files
committed
Fix heater_id
1 parent f96b5ef commit 40f6ea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def gateway_id(self) -> str:
100100
@property
101101
def heater_id(self) -> str:
102102
"""Return the heater-id."""
103-
return self._smile_props["heater_id"]
103+
if "heater_id" in self._smile_props:
104+
return self._smile_props["heater_id"]
105+
return NONE
104106

105107
@property
106108
def item_count(self) -> int:

0 commit comments

Comments
 (0)