diff --git a/homeassistant/components/easyenergy/__init__.py b/homeassistant/components/easyenergy/__init__.py index c6be8ab5d6c..6c00ec5a6a3 100644 --- a/homeassistant/components/easyenergy/__init__.py +++ b/homeassistant/components/easyenergy/__init__.py @@ -27,7 +27,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - await async_setup_services(hass, coordinator) + async_setup_services(hass, coordinator) return True diff --git a/homeassistant/components/easyenergy/services.py b/homeassistant/components/easyenergy/services.py index 80a04c5921c..4aeef2f4d71 100644 --- a/homeassistant/components/easyenergy/services.py +++ b/homeassistant/components/easyenergy/services.py @@ -14,6 +14,7 @@ from homeassistant.core import ( ServiceCall, ServiceResponse, SupportsResponse, + callback, ) from homeassistant.exceptions import ServiceValidationError from homeassistant.util import dt as dt_util @@ -109,7 +110,8 @@ async def __get_prices( return __serialize_prices(data.timestamp_return_prices) -async def async_setup_services( +@callback +def async_setup_services( hass: HomeAssistant, coordinator: EasyEnergyDataUpdateCoordinator, ) -> None: