Fixing Gallery and updating timeout type

This commit is contained in:
Zack Arnett
2018-10-29 18:07:57 -04:00
parent 7178d208d3
commit bb4ce278b0
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -55,7 +55,9 @@ export class LightEntity extends Entity {
if (service === "turn_on") {
// eslint-disable-next-line
const { brightness, hs_color } = data;
let { brightness, hs_color, brightness_pct } = data;
// eslint-disable-next-line
brightness = (255 * brightness_pct) / 100;
this.update(
"on",
Object.assign(this.attributes, {