alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.36k stars 263 forks source link

Raise ConfigEntryNotReady before calling async_forward_entry_setups Error #2283

Open Snuffy2 opened 4 weeks ago

Snuffy2 commented 4 weeks ago

Describe the bug

When starting HA and the Alexa integration is not ready yet, I am seeing the errors below in the logs.

To Reproduce

Appears on ocaasion when HA is starting when the Alexa integration isn't ready yet.

System details

Logs

2024-06-07 22:48:50.089 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform switch; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-06-07 22:48:50.090 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform sensor; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-06-07 22:48:50.091 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform alarm_control_panel; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-06-07 22:48:50.091 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform light; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-06-07 22:48:50.092 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform binary_sensor; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
danielbrunt57 commented 2 days ago

This has been fixed in 4.10.3

Snuffy2 commented 2 days ago

Sorry, this is still happening in 4.10.3:

2024-07-04 18:37:51.608 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform switch; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-07-04 18:37:51.609 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform sensor; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-07-04 18:37:51.610 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform alarm_control_panel; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-07-04 18:37:51.611 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform light; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups
2024-07-04 18:37:51.614 ERROR (MainThread) [homeassistant.helpers.entity_platform] alexa_media raises exception ConfigEntryNotReady in forwarded platform binary_sensor; Instead raise ConfigEntryNotReady before calling async_forward_entry_setups