-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Do not LG thinq retry entry setup, when a single coordinator failed #125052
Conversation
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
108ab22
to
0d9d711
Compare
This comment was marked as outdated.
This comment was marked as outdated.
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.
When can a single coordinator fail?
A single coordinator fails, when a device is not connected to the cloud, |
But that means that device is returned in the device list but not when you specifically ask for an update for that device? |
Because the device is registered by the user through the mobile application and etc, the Cloud always send it into the list. |
Can you elaborate on what MQTT exactly communicates when? |
When the device is connected to the Wi-Fi again, it will try to connect to the cloud. |
When the device is not connected to the cloud and we indeed use async refresh instead of the config entry refresh, does it create the entities and device but show them as unavailable? |
Yes, you are correct. |
Does the coordinator already log when this is happening? |
I think this would be an awesome testcase to have to make sure it keeps doing what we expect |
Are you asking if we are logging in that case? |
In that case I think I agree with merging this |
What do you mean 'in that case'? |
Oh, that I now have all the answers and that i agree that this is the way. If the answers were different i would advice more changes or a different approach, but this is the best way forward |
Thank you. Then can I open this PR? |
Yes |
Breaking change
Proposed change
When a single coordinator failed, we don't need to retry entry setup.
Use async_refresh() instead of async_config_entry_first_refresh()
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: