Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Release 0.40.8
Browse files Browse the repository at this point in the history
Fix refresh
  • Loading branch information
doudz committed Sep 16, 2020
2 parents 7ea7dfc + cb4652e commit 2c0ee7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zigate/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2842,7 +2842,7 @@ def refresh_device(self, full=False, force=False):
if not force:
last_1h = datetime.datetime.now() - datetime.timedelta(hours=1)
last_1h = last_1h.strftime('%Y-%m-%d %H:%M:%S')
if self.last_seen > last_1h:
if self.last_seen and self.last_seen > last_1h:
LOGGER.debug('Last seen less than an hour, ignoring refresh')
return
if full:
Expand Down
2 changes: 1 addition & 1 deletion zigate/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
#


__version__ = '0.40.7'
__version__ = '0.40.8'

0 comments on commit 2c0ee7d

Please sign in to comment.