Fix button card behavior to toggle scenes (#12203)

This commit is contained in:
Philip Allgaier 2022-04-04 15:40:10 +02:00 committed by GitHub
parent 89e31486c5
commit 718f0330a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,9 @@ export const turnOnOffEntity = (
case "input_button":
service = "press";
break;
case "scene":
service = "turn_on";
break;
default:
service = turnOn ? "turn_on" : "turn_off";
}