mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Call correct "button.press" service for button entity toggle action (#11346)
This commit is contained in:
parent
441f1fbcb5
commit
ef39317019
@ -17,6 +17,9 @@ export const turnOnOffEntity = (
|
||||
case "cover":
|
||||
service = turnOn ? "open_cover" : "close_cover";
|
||||
break;
|
||||
case "button":
|
||||
service = "press";
|
||||
break;
|
||||
default:
|
||||
service = turnOn ? "turn_on" : "turn_off";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user