Skip to content

Commit

Permalink
do not load historical data
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeyev committed Jun 8, 2024
1 parent 3fcf9a5 commit ab08733
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions custom_components/eyeonwater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
_LOGGER.exception("Fetching meters failed")
raise

# Fetch actual meter_info for all meters
try:
await eye_on_water_data.read_meters(days_to_load=30)
except Exception:
_LOGGER.exception("Reading meters failed")
raise

async def async_update_data():
_LOGGER.debug("Fetching latest data")
await eye_on_water_data.read_meters(days_to_load=3)
Expand Down

0 comments on commit ab08733

Please sign in to comment.