Skip to content

Commit 71d0610

Browse files
authored
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.
1 parent 716ffd7 commit 71d0610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/pyscript/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from homeassistant.core import Config, HomeAssistant, ServiceCall
2525
from homeassistant.exceptions import HomeAssistantError
2626
import homeassistant.helpers.config_validation as cv
27-
from homeassistant.helpers.event import Event as HAEvent
27+
from homeassistant.core import Event as HAEvent
2828
from homeassistant.helpers.restore_state import DATA_RESTORE_STATE
2929
from homeassistant.loader import bind_hass
3030

0 commit comments

Comments
 (0)