Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
disabling meter updates
Browse files Browse the repository at this point in the history
  • Loading branch information
uvejota committed Aug 10, 2021
1 parent 8699f75 commit 86ddb34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eds/EdsHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ def update (self, cups=None):
self._update_pvpc_prices ()
self.attributes['pvpc_last_update'] = self._last_pvpc_update.strftime("%d-%m-%Y %H:%M:%S") if self._last_pvpc_update is not None else None
# Fetch meter data
'''
if self._last_meter_update is None or (datetime.now() - self._last_meter_update) > self._short_interval:
self._update_meter ()
self.attributes['meter_last_update'] = self._last_meter_update.strftime("%d-%m-%Y %H:%M:%S") if self._last_meter_update is not None else None
'''
self._last_try = datetime.now()
except Exception as e:
_LOGGER.info (e)
Expand Down

0 comments on commit 86ddb34

Please sign in to comment.