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 21
21
EVENT_STATE_CHANGED ,
22
22
SERVICE_RELOAD ,
23
23
)
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
25
26
from homeassistant .exceptions import HomeAssistantError
26
27
import homeassistant .helpers .config_validation as cv
27
28
from homeassistant .helpers .restore_state import DATA_RESTORE_STATE
64
65
CONFIG_SCHEMA = vol .Schema ({DOMAIN : PYSCRIPT_SCHEMA }, extra = vol .ALLOW_EXTRA )
65
66
66
67
67
- async def async_setup (hass : HomeAssistant , config : Config ) -> bool :
68
+ async def async_setup (hass : HomeAssistant , config : ConfigType ) -> bool :
68
69
"""Component setup, run import config flow for each entry in config."""
69
70
await restore_state (hass )
70
71
if DOMAIN in config :
You can’t perform that action at this time.
0 commit comments