Skip to content

Commit

Permalink
Merge pull request #403 from KapJI/offline-ac
Browse files Browse the repository at this point in the history
Handle update of offline AC
  • Loading branch information
AlexxIT committed Nov 2, 2023
2 parents 043f0b3 + 2db270d commit 52c606f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/yandex_station/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,7 @@ async def async_update(self):

instance = property["parameters"]["instance"]
if instance == "temperature":
self._c_temp = property["state"]["value"]
if property["state"] is not None:
self._c_temp = property["state"]["value"]
else:
self._c_temp = None

0 comments on commit 52c606f

Please sign in to comment.