From 393da7b2e00d043884942fe36e57a657d02e575f Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Mon, 18 Dec 2023 13:27:37 +0100 Subject: [PATCH] Fix easyenergy async_setup_services declaration (#105947) --- homeassistant/components/easyenergy/__init__.py | 2 +- homeassistant/components/easyenergy/services.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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: