mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Fix easyenergy async_setup_services declaration (#105947)
This commit is contained in:
parent
8d0ce6ead6
commit
393da7b2e0
@ -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 hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||||
|
|
||||||
await async_setup_services(hass, coordinator)
|
async_setup_services(hass, coordinator)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ from homeassistant.core import (
|
|||||||
ServiceCall,
|
ServiceCall,
|
||||||
ServiceResponse,
|
ServiceResponse,
|
||||||
SupportsResponse,
|
SupportsResponse,
|
||||||
|
callback,
|
||||||
)
|
)
|
||||||
from homeassistant.exceptions import ServiceValidationError
|
from homeassistant.exceptions import ServiceValidationError
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
@ -109,7 +110,8 @@ async def __get_prices(
|
|||||||
return __serialize_prices(data.timestamp_return_prices)
|
return __serialize_prices(data.timestamp_return_prices)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_services(
|
@callback
|
||||||
|
def async_setup_services(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
coordinator: EasyEnergyDataUpdateCoordinator,
|
coordinator: EasyEnergyDataUpdateCoordinator,
|
||||||
) -> None:
|
) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user