Skip to content

Do not defer listening to state_changed events until HA has started. …#751

Merged
craigbarratt merged 1 commit intocustom-components:masterfrom
rumpeltux:master
Sep 9, 2025
Merged

Do not defer listening to state_changed events until HA has started. …#751
craigbarratt merged 1 commit intocustom-components:masterfrom
rumpeltux:master

Conversation

@rumpeltux
Copy link

Fixes #750 (see that issue for details)

@ALERTua
Copy link
Contributor

ALERTua commented Aug 24, 2025

@craigbarratt This PR claims to fix "state_trigger not working after disabling and reactivating pyscript":
The state_changed listener is only setup upon hass_started.
When disabling pyscript, the listener is removed. When re-enabling it, the listener is never re-added.

@craigbarratt craigbarratt merged commit 7e54c83 into custom-components:master Sep 9, 2025
6 checks passed
@craigbarratt
Copy link
Member

Thanks for the PR and @ALERTua thanks for the explanation.

@marcelhoogantink
Copy link

When will a new release be published?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

state_trigger not working after disabling and reactivating pyscript

4 participants