Fix easyenergy async_setup_services declaration (#105947)
This commit is contained in:
parent
8d0ce6ead6
commit
393da7b2e0
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue