custom-components / pyscript

Pyscript adds rich Python scripting to HASS
Apache License 2.0
874 stars 46 forks source link

Fix import of Event (fixes import error with 2023.8 beta) #500

Closed rccoleman closed 1 year ago

rccoleman commented 1 year ago

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.

craigbarratt commented 1 year ago

Thanks for the fix!