Add support for automation description (#3723)

* Add support for automation annotation

* Update label and add placeholder

* Rename annotation to description

* Adress review comments, fix lint errors
This commit is contained in:
Erik Montnemery
2019-09-20 17:19:38 +02:00
committed by Paulus Schoutsen
parent 145259e82f
commit eee0c2e53f
5 changed files with 26 additions and 3 deletions

View File

@@ -21,7 +21,11 @@ class HaTextarea extends PolymerElement {
display: block;
}
</style>
<paper-textarea label="[[label]]" value="{{value}}"></paper-textarea>
<paper-textarea
label="[[label]]"
placeholder="[[placeholder]]"
value="{{value}}"
></paper-textarea>
`;
}
@@ -29,6 +33,7 @@ class HaTextarea extends PolymerElement {
return {
name: String,
label: String,
placeholder: String,
value: {
type: String,
notify: true,