mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-09 16:07:21 -06:00
add domains: alarm_control_panel, cover, media_player, scene
This commit is contained in:
@@ -9,9 +9,12 @@ import (
|
||||
)
|
||||
|
||||
func BuildService[
|
||||
T Light |
|
||||
T AlarmControlPanel |
|
||||
Cover |
|
||||
Light |
|
||||
HomeAssistant |
|
||||
Lock |
|
||||
MediaPlayer |
|
||||
Switch |
|
||||
InputBoolean |
|
||||
InputButton |
|
||||
@@ -19,7 +22,8 @@ func BuildService[
|
||||
InputText |
|
||||
InputNumber |
|
||||
Notify |
|
||||
Number,
|
||||
Number |
|
||||
Scene,
|
||||
](conn *websocket.Conn, ctx context.Context) *T {
|
||||
return &T{conn: conn, ctx: ctx}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user