|
6 | 6 | import backoff
|
7 | 7 | import voluptuous as vol
|
8 | 8 | from homeassistant.config_entries import ConfigEntry
|
9 |
| -from homeassistant.core import Config, HomeAssistant |
| 9 | +from homeassistant.core import HomeAssistant |
10 | 10 | from homeassistant.const import Platform
|
11 | 11 | from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
12 | 12 | from homeassistant.helpers.dispatcher import async_dispatcher_send
|
13 | 13 | from homeassistant.helpers.event import async_track_time_change
|
| 14 | +from homeassistant.helpers.typing import ConfigType |
14 | 15 | from homeassistant.util import dt as dt_utils
|
15 | 16 |
|
16 | 17 | from .aio_price import AioPrices, InvalidValueException
|
@@ -132,7 +133,7 @@ async def tomorrow(self, area: str, currency: str):
|
132 | 133 | return await self._someday(area, currency, "tomorrow")
|
133 | 134 |
|
134 | 135 |
|
135 |
| -async def _dry_setup(hass: HomeAssistant, config: Config) -> bool: |
| 136 | +async def _dry_setup(hass: HomeAssistant, config: ConfigType) -> bool: |
136 | 137 | """Set up using yaml config file."""
|
137 | 138 | if DOMAIN not in hass.data:
|
138 | 139 | api = NordpoolData(hass)
|
@@ -192,7 +193,7 @@ async def new_data_cb(_):
|
192 | 193 | return True
|
193 | 194 |
|
194 | 195 |
|
195 |
| -async def async_setup(hass: HomeAssistant, config: Config) -> bool: |
| 196 | +async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: |
196 | 197 | """Set up using yaml config file."""
|
197 | 198 | return await _dry_setup(hass, config)
|
198 | 199 |
|
|
0 commit comments