Fix easyenergy async_setup_services declaration (#105947)

This commit is contained in:
Robert Resch 2023-12-18 13:27:37 +01:00 committed by GitHub
parent 8d0ce6ead6
commit 393da7b2e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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: