File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/pyscript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2222 SERVICE_RELOAD ,
2323)
2424from homeassistant .core import Event as HAEvent , HomeAssistant , ServiceCall
25- from homeassistant .core_config import Config
25+ from homeassistant .helpers . typing import ConfigType
2626from homeassistant .exceptions import HomeAssistantError
2727import homeassistant .helpers .config_validation as cv
2828from homeassistant .helpers .restore_state import DATA_RESTORE_STATE
6565CONFIG_SCHEMA = vol .Schema ({DOMAIN : PYSCRIPT_SCHEMA }, extra = vol .ALLOW_EXTRA )
6666
6767
68- async def async_setup (hass : HomeAssistant , config : Config ) -> bool :
68+ async def async_setup (hass : HomeAssistant , config : ConfigType ) -> bool :
6969 """Component setup, run import config flow for each entry in config."""
7070 await restore_state (hass )
7171 if DOMAIN in config :
You can’t perform that action at this time.
0 commit comments