Skip to content

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouke authored Aug 18, 2021
1 parent 58c5ce1 commit 6e5db75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/e_thermostaat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def target_temperature(self):
return self._target_temperature

@property
def available() -> bool:
def available(self) -> bool:
return self._last_seen and datetime.datetime.now() - self._last_seen < datetime.timedelta(seconds=600)

@property
Expand Down

0 comments on commit 6e5db75

Please sign in to comment.