Skip to content

Commit f96b5ef

Browse files
committed
Fix non-thermostats
1 parent 6edba7f commit f96b5ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ def __init__(
8686
self.smile_zigbee_mac_address: str | None = None
8787

8888
@property
89-
def cooling_present(self) -> str:
89+
def cooling_present(self) -> str | None:
9090
"""Return the cooling capability."""
91-
return self._smile_props["cooling_present"]
91+
if "cooling_present" in self._smile_props:
92+
return self._smile_props["cooling_present"]
93+
return None
9294

9395
@property
9496
def gateway_id(self) -> str:

0 commit comments

Comments
 (0)