mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-13 04:50:29 +00:00
Render should always return a html template (#4612)
This commit is contained in:
committed by
Paulus Schoutsen
parent
82fb622904
commit
04f8f0f74f
@@ -16,7 +16,7 @@ class MoreInfoScript extends LitElement {
|
||||
@property() public hass!: HomeAssistant;
|
||||
@property() public stateObj?: HassEntity;
|
||||
|
||||
protected render(): TemplateResult | void {
|
||||
protected render(): TemplateResult {
|
||||
if (!this.hass || !this.stateObj) {
|
||||
return html``;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user