mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix turning valve on/off (#19269)
This commit is contained in:
parent
4f05bd9e22
commit
e427ffca5f
@ -272,6 +272,7 @@ export const DOMAINS_TOGGLE = new Set([
|
|||||||
"group",
|
"group",
|
||||||
"automation",
|
"automation",
|
||||||
"humidifier",
|
"humidifier",
|
||||||
|
"valve",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/** Domains that have a dynamic entity image / picture. */
|
/** Domains that have a dynamic entity image / picture. */
|
||||||
|
@ -24,6 +24,9 @@ export const turnOnOffEntity = (
|
|||||||
case "scene":
|
case "scene":
|
||||||
service = "turn_on";
|
service = "turn_on";
|
||||||
break;
|
break;
|
||||||
|
case "valve":
|
||||||
|
service = turnOn ? "open_valve" : "close_valve";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
service = turnOn ? "turn_on" : "turn_off";
|
service = turnOn ? "turn_on" : "turn_off";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user