diff --git a/homeassistant/components/group/__init__.py b/homeassistant/components/group/__init__.py index 364ef15fa5e36a..82c2651e76429d 100644 --- a/homeassistant/components/group/__init__.py +++ b/homeassistant/components/group/__init__.py @@ -526,12 +526,13 @@ def async_state_changed_listener( self.hass, self._entity_ids, async_state_changed_listener ) ) + self.async_on_remove(start.async_at_start(self.hass, self._update_at_start)) - async def _update_at_start(_: HomeAssistant) -> None: - self.async_update_group_state() - self.async_write_ha_state() - - self.async_on_remove(start.async_at_start(self.hass, _update_at_start)) + @callback + def _update_at_start(self, _: HomeAssistant) -> None: + """Update the group state at start.""" + self.async_update_group_state() + self.async_write_ha_state() @callback def async_defer_or_update_ha_state(self) -> None: