Skip to content

Commit af669e3

Browse files
committed
fixes Config import deprecation
1 parent 59b2011 commit af669e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/pyscript/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
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.core_config import Config
2526
from homeassistant.exceptions import HomeAssistantError
2627
import homeassistant.helpers.config_validation as cv
2728
from homeassistant.helpers.restore_state import DATA_RESTORE_STATE

0 commit comments

Comments
 (0)