-
-
Notifications
You must be signed in to change notification settings - Fork 36.4k
Fix unhandled exceptions for config, default_config, harmony #33731
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 @home-assistant/core, mind taking a look at this pull request as its been labeled with a integration ( |
|
Hey there @ehendrix23, @bramkragten, @bdraco, mind taking a look at this pull request as its been labeled with a integration ( |
|
Is there an issue for harmony that should be referenced? |
|
I don’t think so. I guess that when it was added to the JSON exceptions it was considered benign. |
|
There's a merge conflict. |
fixed |
MartinHjelmare
left a comment
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.
Test failure is unrelated.
|
This needs to be backported to 0.108.0 as it will change the unique id for harmony to a str and will make it unstable when upgrading to 0.109.0 |
|
I thought unique id is always a string. Isn’t it? |
|
@ziv1234. The unique is is new for 0.108 so it’s fine as long as this ships with .0 |
|
Ok, but since I did it with the wrong assumption that unique Ids are always strings, and I am not the owner of harmony, I may have hurt the functionality there. Will find a better way to avoid the exceptions today. It just means that unique ids cannot be mocks. Not a real problem |
|
Will push a fix today so I don’t interfere with the integration functionality at all |
|
|
|
ok, so in that case should we keep this as is since it won't cause backwards compatibility issues? |
|
just noticed that the PR is closed. Will open a new PR. was a simple change and now the code itself is exactly the original (Without the explicit cast to str) |
|
new PR is #33777 |
|
Untagging this from the milestone in favor of #33777 fixing it in dev. |
|
Oh, reading 33777 now. Ok, let's keep this in. |
* replaced MagicMock with CoroutineMock to avoid exception * added conversion to str so mock returns unique-id that doesn't throw json exception * added non-empty config since hass throws exception when config is empty
Breaking change
Proposed change
did one PR for all three since they are tiny and i got tired of opening too many PRs...
Type of change
Example entry for
configuration.yaml:# Example configuration.yamlAdditional 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: