mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +00:00
Revert "Remove card features for humidifier and climate on default dashboard" (#18944)
* Revert "Remove card features for humidifier and climate on default dashboard (#18747)" This reverts commit 2afd2788e2db6f59f8b97560e43883a95f51b646. * Rename humidifier feature
This commit is contained in:
parent
0f9c97aea0
commit
cca1183ee3
@ -143,12 +143,23 @@ export const computeCards = (
|
|||||||
const cardConfig: ThermostatCardConfig = {
|
const cardConfig: ThermostatCardConfig = {
|
||||||
type: "thermostat",
|
type: "thermostat",
|
||||||
entity: entityId,
|
entity: entityId,
|
||||||
|
features: [
|
||||||
|
{
|
||||||
|
type: "climate-hvac-modes",
|
||||||
|
hvac_modes: states[entityId]?.attributes?.hvac_modes,
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
cards.push(cardConfig);
|
cards.push(cardConfig);
|
||||||
} else if (domain === "humidifier") {
|
} else if (domain === "humidifier") {
|
||||||
const cardConfig: HumidifierCardConfig = {
|
const cardConfig: HumidifierCardConfig = {
|
||||||
type: "humidifier",
|
type: "humidifier",
|
||||||
entity: entityId,
|
entity: entityId,
|
||||||
|
features: [
|
||||||
|
{
|
||||||
|
type: "humidifier-toggle",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
cards.push(cardConfig);
|
cards.push(cardConfig);
|
||||||
} else if (domain === "media_player") {
|
} else if (domain === "media_player") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user