Skip to content

Commit

Permalink
datacoordinator: change update_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ldotlopez committed Nov 21, 2022
1 parent 4c9608d commit 6696015
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/ideenergy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
delta=timedelta(hours=36)
),
},
# Use default update_interval and relay on barriers
# update_interval=_calculate_datacoordinator_update_interval(),
update_interval=timedelta(seconds=30),
# Use default update_interval and relay on barriers for now
# MEASURE barrier should deny if last attempt (success or not) is too recent to
# prevent api smashing or subsequent baning
update_interval=_calculate_datacoordinator_update_interval(),
# update_interval=timedelta(seconds=30),
)

# Don't refresh coordinator yet since there isn't any sensor registered
Expand Down

0 comments on commit 6696015

Please sign in to comment.