Pyscript 1.3.3 release
The 1.3.3 release supports the HASS 2022.3 release, which has a breaking change related to the interface for entity (state) persistence.
State persistence in pyscript
will not work in HASS 2022.3 if you use pyscript
versions prior to 1.3.3.
This was reported by @LeszekSwirski and fixed by @dlashua (see #331). Thanks!
This release also bumps the required version of the watchdog
module to 2.1.6, which matches the required version in the folder_watcher
integration in 2022.3. If you run this version of pyscript
with an older version of HASS, you might see a version conflict for watchdog
. If so, either upgrade HASS or downgrade pyscript
to 1.3.2.
There are a couple of other bug fixes since 1.3.2:
- Correctly detect inner functions instead of just at top level, reported by @LeszekSwirski (see #263).
- Ensure
once()
triggers without a date that have a negative (eg,midnight - 30s
) or large (more than 2 days) offset are adjusted so they happen in the next 24 hours. Previously, a negative offset or a large positive offset that were in the past or more than 2 days in the future would never trigger. Reported by @herrfrei (see #330).
Enjoy!