mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-06 01:19:45 +00:00
Render should always return a html template (#4612)
This commit is contained in:
committed by
Paulus Schoutsen
parent
82fb622904
commit
04f8f0f74f
@@ -28,7 +28,7 @@ class HaEntityToggle extends LitElement {
|
||||
@property() public stateObj?: HassEntity;
|
||||
@property() private _isOn: boolean = false;
|
||||
|
||||
protected render(): TemplateResult | void {
|
||||
protected render(): TemplateResult {
|
||||
if (!this.stateObj) {
|
||||
return html`
|
||||
<ha-switch disabled></ha-switch>
|
||||
|
||||
Reference in New Issue
Block a user