From 71d06102a15460ba7b3d9beac434291a09cfc785 Mon Sep 17 00:00:00 2001 From: Rob Coleman Date: Thu, 27 Jul 2023 14:56:57 -0700 Subject: [PATCH] Fix import of Event The Event class should have been imported from `homeassistant.core` (as per Frenck), and the current import breaks in 2023.8. This change makes PyScript work properly in 2023.8. --- custom_components/pyscript/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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