Skip to content

Commit

Permalink
Add data refresh request after setting grid profile
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwolsink committed Nov 3, 2023
1 parent 954c404 commit bf11aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/enphase_envoy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ async def get_grid_profiles(call: ServiceCall) -> ServiceResponse:

async def set_grid_profile(call: ServiceCall):
await envoy_reader.set_grid_profile(call.data["profile"])
await coordinator.async_request_refresh()

hass.services.async_register(
DOMAIN,
Expand Down

0 comments on commit bf11aaf

Please sign in to comment.