-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Use callback to get app_list in SamsungTV #68506
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
Conversation
Hey there @chemelli74, mind taking a look at this pull request as it has been labeled with an integration ( |
This is a much better design. Is there any risk that the sources won't be available until after the started event ? |
Not in my experience - I always get the list. But I cannot say for all TVs. |
Maybe wait 2-3s for an |
Is this what you have in mind? 69d22960e04d22ce3573293465951b2b746428e5 |
761152a
to
042581e
Compare
From Discord:
If we need to wait anyway inside the I have refactored the code anyway but if you feel it's pointless we can close the PR. |
Will need to be rebased over #68562 |
718626a
to
f782779
Compare
This reverts commit 578a57faaf2b2e94c98c84c257900f075aaed055.
This reverts commit 69d22960e04d22ce3573293465951b2b746428e5.
f782779
to
ddfaa29
Compare
Proposed change
After #66752 was merged, I discovered that some newer models no longer reply to the app_list request. They accept the request, but don't respond and we are waiting for the timeout to trigger in the media_player update method.
This PR moves the logic into a callback, so the app_list request is sent on connect, but we no longer wait for a response.
If a response does come, then the callback is triggered.
Follow-up to #66752, #68114, #68235
Type of change
Additional information
Checklist
black --fast 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
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: