-
-
Notifications
You must be signed in to change notification settings - Fork 32k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hdmi_cec entity race #18753
Fix hdmi_cec entity race #18753
Conversation
e0b3ae1
to
3165364
Compare
@MartinHjelmare addressed. Now I'm using |
@MartinHjelmare addressed. |
43b5448
to
b144f26
Compare
* Update shouldn't be called before adding the entity. * Transitional states from https://github.com/Pulse-Eight/libcec/blob/8adc786bac9234fc298c941dd442c3af3155a522/include/cectypes.h#L458-L459 Addressing home-assistant#12846
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
For future PRs please don't squash commits after review has started to make it easier for readers to track changes. We always squash when we merge anyway.
Can be merged when build passes.
Has this issue being fixed? I am still having the same problem
|
Update shouldn't be called before adding the entity.
Description:
update()
is moved outside of the__init__()
, otherwise it triggers entity creation withentity_platform.async_add_entities
, see f241bec.add_entities
is now updating those entities instead.async_added_to_hass
.self.schedule_update_ha_state(True)
.Related issue: fixes #12846
Example entry for
configuration.yaml
:hdmi_cec:
Checklist:
tox
. Your PR cannot be merged unless tests pass