File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
custom_components/pyscript Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2121 EVENT_STATE_CHANGED ,
2222 SERVICE_RELOAD ,
2323)
24- from homeassistant .core import Config , Event as HAEvent , HomeAssistant , ServiceCall
24+ from homeassistant .core import Event as HAEvent , HomeAssistant , ServiceCall
25+ from homeassistant .helpers .typing import ConfigType
2526from homeassistant .exceptions import HomeAssistantError
2627import homeassistant .helpers .config_validation as cv
2728from homeassistant .helpers .restore_state import DATA_RESTORE_STATE
6465CONFIG_SCHEMA = vol .Schema ({DOMAIN : PYSCRIPT_SCHEMA }, extra = vol .ALLOW_EXTRA )
6566
6667
67- async def async_setup (hass : HomeAssistant , config : Config ) -> bool :
68+ async def async_setup (hass : HomeAssistant , config : ConfigType ) -> bool :
6869 """Component setup, run import config flow for each entry in config."""
6970 await restore_state (hass )
7071 if DOMAIN in config :
You can’t perform that action at this time.
0 commit comments