From f0b0200932d7a08e64151205dead13dc18d7f245 Mon Sep 17 00:00:00 2001 From: Denis Shulyaka Date: Thu, 18 Jun 2020 17:03:47 +0300 Subject: [PATCH] Revert "apply suggestions from code review" This reverts commit 342f22e6a1f2ab85d0a45dd09681d7f17ac75544. --- src/components/entity/ha-entity-humidifier.ts | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/src/components/entity/ha-entity-humidifier.ts b/src/components/entity/ha-entity-humidifier.ts index 480188c54b..ac6603e499 100644 --- a/src/components/entity/ha-entity-humidifier.ts +++ b/src/components/entity/ha-entity-humidifier.ts @@ -27,36 +27,35 @@ class HaEntityHumidifier extends HaEntityToggle { `; } - static get styles(): CSSResult[] { - return [ - super.styles, - css` - :host { - display: flex; - flex-direction: row; - justify-content: center; - align-items: center; - } + static get styles(): CSSResult { + return css` + :host { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + } - .target { - color: var(--primary-text-color); - } + .target { + color: var(--primary-text-color); + } - .current { - color: var(--secondary-text-color); - } + .current { + color: var(--secondary-text-color); + } - .state-label { - font-weight: bold; - text-transform: capitalize; - } + .state-label { + font-weight: bold; + text-transform: capitalize; + } - .unit { - display: inline-block; - direction: ltr; - } - `, - ]; + .unit { + display: inline-block; + direction: ltr; + } + + ${super.styles} + `; } }