+ ${action && ["drying", "humidifying"].includes(action) + ? this.hass.localize( + "ui.dialogs.more_info_control.humidifier.target_label", + { action: actionLabel } + ) + : action && action !== "off" && action !== "idle" + ? actionLabel + : this.hass.localize( + "ui.dialogs.more_info_control.humidifier.target" + )} +
+ `; + } + + private _renderButtons() { + return html` + + `; + } + + private _renderTarget(humidity: number) { + const formatted = formatNumber(humidity, this.hass.locale, { + maximumFractionDigits: 0, + }); + + return html` ++ ${formatted}${blankBeforePercent(this.hass.locale)}% +
++ ${computeAttributeNameDisplay( + this.hass.localize, + this.stateObj, + this.hass.entities, + "current_humidity" + )} +
++ ${formatNumber( + currentHumidity, + this.hass.locale + )}${blankBeforePercent(this.hass.locale)}% +
+