mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 05:15:15 -06:00
Use correct service
This commit is contained in:
@@ -120,7 +120,7 @@ func (mp MediaPlayer) Stop(entityId string) {
|
||||
func (mp MediaPlayer) PlayMedia(entityId string, serviceData ...map[string]any) {
|
||||
req := NewBaseServiceRequest(entityId)
|
||||
req.Domain = "media_player"
|
||||
req.Service = "media_play"
|
||||
req.Service = "play_media"
|
||||
if len(serviceData) != 0 {
|
||||
req.ServiceData = serviceData[0]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user