Skip to content

Commit

Permalink
Update custom_components/e_thermostaat/climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard33 committed Aug 20, 2021
1 parent 6e5db75 commit d475c29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/e_thermostaat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def target_temperature(self):

@property
def available(self) -> bool:
"""Return True if entity is available."""
return self._last_seen and datetime.datetime.now() - self._last_seen < datetime.timedelta(seconds=600)

@property
Expand Down

0 comments on commit d475c29

Please sign in to comment.