Random cleanups (#6402)

This commit is contained in:
Paulus Schoutsen 2020-07-15 23:24:16 -07:00 committed by GitHub
parent 1db9eea0f8
commit 0a8894feb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -268,8 +268,6 @@ class HuiGaugeCard extends LitElement implements LovelaceCard {
width: 100%;
font-size: 15px;
}
}
`;
}
}

View File

@ -105,7 +105,7 @@ export class HuiHumidifierCard extends LitElement implements LovelaceCard {
.min=${stateObj.attributes.min_humidity}
.max=${stateObj.attributes.max_humidity}
.rtl=${rtlDirection === "rtl"}
.step="1"
step="1"
@value-changing=${this._dragEvent}
@value-changed=${this._setHumidity}
></round-slider>

View File

@ -1,3 +1,4 @@
import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable";
import deepFreeze from "deep-freeze";
import {
css,

View File

@ -1,3 +1,4 @@
import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable";
import deepFreeze from "deep-freeze";
import {
css,

View File

@ -98,7 +98,7 @@ class HuiInputNumberEntityRow extends LitElement implements LovelaceRow {
no-label-float
auto-validate
.disabled=${UNAVAILABLE_STATES.includes(stateObj.state)}
.pattern="[0-9]+([\\.][0-9]+)?"
pattern="[0-9]+([\\.][0-9]+)?"
.step="${Number(stateObj.attributes.step)}"
.min="${Number(stateObj.attributes.min)}"
.max="${Number(stateObj.attributes.max)}"