Skip to content

Commit 4016f18

Browse files
committed
Correct config type declaration.
1 parent 142f7ee commit 4016f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/uhoo/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
from homeassistant.config_entries import ConfigEntry
1515
from homeassistant.const import UnitOfPressure, UnitOfTemperature, CONF_PASSWORD, CONF_USERNAME
16-
from homeassistant.core_config import Config
1716
from homeassistant.core import HomeAssistant
1817
from homeassistant.exceptions import ConfigEntryNotReady
1918
from homeassistant.helpers.aiohttp_client import async_get_clientsession
2019
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
20+
from homeassistant.helpers.typing import ConfigType
2121

2222
from .const import DOMAIN, LOGGER, PLATFORMS, STARTUP_MESSAGE, UPDATE_INTERVAL
2323

2424
# https://github.com/home-assistant/example-custom-config/tree/master/custom_components
2525

26-
async def async_setup(hass: HomeAssistant, config: Config) -> bool:
26+
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
2727
"""Set up all platforms for this device/entry."""
2828
return True
2929

0 commit comments

Comments
 (0)