diff --git a/services.py b/services.py index b98ab5c..c2af0d8 100644 --- a/services.py +++ b/services.py @@ -565,7 +565,7 @@ def _parse_periods(text) -> list[PeakSettingPeriod]: ) return result - bridge = get_battery_bridge(hass, service_call) + bridge, uc = get_battery_bridge(hass, service_call) if not re.fullmatch( CAPACITY_CONTROL_PERIODS_PATTERN, service_call.data[DATA_PERIODS] @@ -577,6 +577,8 @@ def _parse_periods(text) -> list[PeakSettingPeriod]: _parse_periods(service_call.data[DATA_PERIODS]), ) + await uc.async_refresh() + async def set_fixed_charge_periods( hass: HomeAssistant, service_call: ServiceCall