Skip to content

Commit

Permalink
Revert "Remove card features for humidifier and climate on default da…
Browse files Browse the repository at this point in the history
…shboard" (#18944)

* Revert "Remove card features for humidifier and climate on default dashboard (#18747)"

This reverts commit 2afd278.

* Rename humidifier feature
  • Loading branch information
piitaya authored Dec 7, 2023
1 parent 0f9c97a commit cca1183
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/panels/lovelace/common/generate-lovelace-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,23 @@ export const computeCards = (
const cardConfig: ThermostatCardConfig = {
type: "thermostat",
entity: entityId,
features: [
{
type: "climate-hvac-modes",
hvac_modes: states[entityId]?.attributes?.hvac_modes,
},
],
};
cards.push(cardConfig);
} else if (domain === "humidifier") {
const cardConfig: HumidifierCardConfig = {
type: "humidifier",
entity: entityId,
features: [
{
type: "humidifier-toggle",
},
],
};
cards.push(cardConfig);
} else if (domain === "media_player") {
Expand Down

0 comments on commit cca1183

Please sign in to comment.