Skip to content

Commit d300ff0

Browse files
authored
Merge pull request #71 from caiosweet/codex/identify-issues-and-propose-fixes
Use `ConfigType` for `async_setup` and fix GELATE description typo
2 parents ff365fe + 2c8217d commit d300ff0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

custom_components/dpc/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
CONF_RADIUS,
1919
CONF_SCAN_INTERVAL,
2020
)
21-
from homeassistant.core import Config, HomeAssistant
21+
from homeassistant.core import HomeAssistant
22+
import homeassistant.helpers.config_validation as cv
23+
from homeassistant.helpers.typing import ConfigType
2224
from homeassistant.exceptions import ConfigEntryNotReady
2325
from homeassistant.helpers import config_validation as cv
2426
from homeassistant.helpers import event
@@ -39,7 +41,8 @@
3941
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
4042

4143

42-
async def async_setup(hass: HomeAssistant, config: Config):
44+
45+
async def async_setup(hass: HomeAssistant, config: ConfigType):
4346
"""Set up this integration using YAML is not supported."""
4447
return True
4548

0 commit comments

Comments
 (0)