LitElement

This commit is contained in:
Denis Shulyaka
2020-06-04 00:53:51 +03:00
parent 404d0b8d05
commit faea8c9f4c
6 changed files with 66 additions and 230 deletions

View File

@@ -22,7 +22,7 @@ const isOn = (stateObj?: HassEntity) =>
!STATES_OFF.includes(stateObj.state) &&
!UNAVAILABLE_STATES.includes(stateObj.state);
class HaEntityToggle extends LitElement {
export class HaEntityToggle extends LitElement {
// hass is not a property so that we only re-render on stateObj changes
public hass?: HomeAssistant;