Skip to content

Commit

Permalink
reduce frequency of calls to property endpoints
Browse files Browse the repository at this point in the history
Increase update_interval from 60s to 60minutes to reduce burden on API server. 
This would affect those who change settings in the Sonic app and then want to see the change reflected in home assistant
  • Loading branch information
markvader authored Jan 25, 2023
1 parent 17d1b20 commit 5e1135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonic/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, hass: HomeAssistant, api_client: Client, property_id: str) ->
hass,
LOGGER,
name=f"{SONIC_DOMAIN}-{property_id}",
update_interval=timedelta(seconds=60),
update_interval=timedelta(seconds=3600),
)

async def _async_update_data(self):
Expand Down

0 comments on commit 5e1135e

Please sign in to comment.