Skip to content
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

Moved JSON to HashMap cast into try-catch block #377

Merged

Conversation

KBerstene
Copy link
Contributor

@KBerstene KBerstene commented Feb 11, 2020

This is a potential fix for #365. The crashing in that issue seems to be caused by the old widget service data string being loaded if the widgets were created pre-1.6.0, when the service data changed from being stored as a plain string that was assigned to entity_id to a JSON string that could handle multiple fields, not just entity_id.

Instead of just crashing, the widget will fail and display the "red X" negative feedback.

@JBassett JBassett merged commit 21de26d into home-assistant:master Feb 12, 2020
@KBerstene KBerstene deleted the widget_try_catch_json_parsing branch February 18, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants