diff --git a/custom_components/pyscript/__init__.py b/custom_components/pyscript/__init__.py index af4c12a..ff1c5d5 100644 --- a/custom_components/pyscript/__init__.py +++ b/custom_components/pyscript/__init__.py @@ -24,7 +24,7 @@ from homeassistant.core import Config, HomeAssistant, ServiceCall from homeassistant.exceptions import HomeAssistantError import homeassistant.helpers.config_validation as cv -from homeassistant.helpers.event import Event as HAEvent +from homeassistant.core import Event as HAEvent from homeassistant.helpers.restore_state import DATA_RESTORE_STATE from homeassistant.loader import bind_hass