linter fix

This commit is contained in:
Denis Shulyaka 2020-06-11 21:33:40 +03:00
parent a0ab4dffc9
commit e9ffdeff19

View File

@ -53,7 +53,9 @@ export const computeStateDisplay = (
stateObj.attributes.minute
);
return formatDateTime(date, language);
} else if (domain === "humidifier") {
}
if (domain === "humidifier") {
if (stateObj.state === "on" && stateObj.attributes.humidity) {
return `${stateObj.attributes.humidity} %`;
}