-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Fix vizio bug that occurs when CONF_APPS isn't in config entry options #33857
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
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.
If we would have had a test we would have caught this. 😉
...touche, working on a test now |
actually not sure if I can test this... I think my tests would have covered this if this was something that could have been tested on the backend. See the following tests: core/tests/components/vizio/test_config_flow.py Lines 128 to 150 in ff93630
core/tests/components/vizio/test_config_flow.py Lines 153 to 176 in ff93630
If this could be tested these code blocks should have resulted in an error because the issue occurs when options haven't been set yet, and in these tests I only set options after creating the entry 😦 |
Make the test add |
just to note, options always get set with EDIT: nevermind, because I'm adding |
* fix bug when search for string in dict fails when dict is null * another bug fix that I only noticed because of this other bug * add test to cover failure scenario * update docstring * add additional assertions to cover failure scenario that's being fixed
108.1 broke Vizio SmartCast bar. Only the Google cast. This bar has Google assistant built in. Worked in 108 |
@tteck Please don't report problems on merged issues. Instead, raise an issue here on GitHub. Thanks 👍 |
Proposed change
A user reported an error (#33851) when
CONF_APPS
isn't in the config entry options that causes the UI for options not to load. This fix sets a default whenCONF_APPS
isn't found ({}
) which should prevent the error. This should be included in the next minor release that goes out for 0.108. I don't see a need to add a test for this because it's a straightforward bug with a straightforward fix, but I will add one if needed.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: