Stop effect in more-info-light (#3636)

* Convert weather-forecast to LitElement

Part of https://github.com/home-assistant/home-assistant-polymer/issues/2095

Not sure how RTL works and how to apply it.

Also, thinking I should update if the forecast changes and not just the state. Input?

* Revert "Convert weather-forecast to LitElement"

This reverts commit e1893b0a83f5973df7a28e5d30c3d4d0496155a1.

* Add stop effect button

Closes https://github.com/home-assistant/home-assistant-polymer/issues/3619

* address review comments

* cleanup
This commit is contained in:
Ian Richardson 2019-09-09 07:10:20 -05:00 committed by Bram Kragten
parent 11f917d5f8
commit 8a710202f1

View File

@ -1,6 +1,7 @@
import "@polymer/iron-flex-layout/iron-flex-layout-classes";
import "@polymer/paper-item/paper-item";
import "@polymer/paper-listbox/paper-listbox";
import { html } from "@polymer/polymer/lib/utils/html-tag";
import { PolymerElement } from "@polymer/polymer/polymer-element";
@ -188,6 +189,7 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) {
on-selected-changed="effectChanged"
attr-for-selected="item-name"
>
<paper-item item-name$="stop">stop</paper-item>
<template
is="dom-repeat"
items="[[stateObj.attributes.effect_list]]"