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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix template widgets that render null in websocket subscription #2866

Merged
merged 1 commit into from
Sep 10, 2022

Conversation

jpelgrom
Copy link
Member

@jpelgrom jpelgrom commented Sep 7, 2022

Summary

Fixes #2865 by handling templates that return null, which is a valid result. These will, like in the preview and developer tools, show up as the string "null" on the widget.

(A similar change was previously made for the preview, but somehow this wasn't considered for subscriptions 馃檭)

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

 - Just like in the preview, null is a valid result and should be handled by the app
@jpelgrom jpelgrom changed the title Fix widgets that return null in websocket subscription Fix template widgets that render null in websocket subscription Sep 7, 2022
@JBassett JBassett merged commit 6756e21 into home-assistant:master Sep 10, 2022
@jpelgrom jpelgrom deleted the fix-2865 branch September 10, 2022 22:37
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.

Illegal Argument Exception for TemplateUpdatedEvent "result"
4 participants