Skip to content

Commit

Permalink
reduce verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed Feb 26, 2023
1 parent e2655fa commit 207d638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/duofern/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(self, id, desc, stick, hass):
self._openclose = 'stop'
hass.data[DOMAIN]['devices'][id] = self
self._last_update_time = datetime.datetime.now()
self._updating_interval = 5

@property
def name(self):
Expand Down Expand Up @@ -127,6 +128,6 @@ def update(self):
self._openclose = self._stick.duofern_parser.modules['by_code'][self._id]['moving']
except KeyError:
self._state = None
if datetime.datetime.now() - self._last_update_time > datetime.timedelta(minutes=5):
if datetime.datetime.now() - self._last_update_time > datetime.timedelta(minutes=self._updating_interval):
self._stick.command(self._id, 'getStatus')
_LOGGER.info(f"{self._id} state is now {self._state}")
4 changes: 2 additions & 2 deletions custom_components/duofern/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"config_flow": true,
"issue_tracker": "https://github.com/gluap/pyduofern-hacs/issues" ,
"codeowners": ["@gluap"],
"requirements": ["pyduofern==0.35.0"],
"version": "0.4.2"
"requirements": ["pyduofern==0.35.1"],
"version": "0.4.3"
}

0 comments on commit 207d638

Please sign in to comment.