mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix button card behavior to toggle scenes (#12203)
This commit is contained in:
parent
89e31486c5
commit
718f0330a7
@ -21,6 +21,9 @@ export const turnOnOffEntity = (
|
|||||||
case "input_button":
|
case "input_button":
|
||||||
service = "press";
|
service = "press";
|
||||||
break;
|
break;
|
||||||
|
case "scene":
|
||||||
|
service = "turn_on";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
service = turnOn ? "turn_on" : "turn_off";
|
service = turnOn ? "turn_on" : "turn_off";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user