We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff365fe + 2c8217d commit d300ff0Copy full SHA for d300ff0
custom_components/dpc/__init__.py
@@ -18,7 +18,9 @@
18
CONF_RADIUS,
19
CONF_SCAN_INTERVAL,
20
)
21
-from homeassistant.core import Config, HomeAssistant
+from homeassistant.core import HomeAssistant
22
+import homeassistant.helpers.config_validation as cv
23
+from homeassistant.helpers.typing import ConfigType
24
from homeassistant.exceptions import ConfigEntryNotReady
25
from homeassistant.helpers import config_validation as cv
26
from homeassistant.helpers import event
@@ -39,7 +41,8 @@
39
41
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
40
42
43
-async def async_setup(hass: HomeAssistant, config: Config):
44
+
45
+async def async_setup(hass: HomeAssistant, config: ConfigType):
46
"""Set up this integration using YAML is not supported."""
47
return True
48
0 commit comments