mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 01:15:10 -06:00
fix bug when registering multiple schedules and >=1 are sunset/sunrise
This commit is contained in:
@@ -36,16 +36,6 @@ func (ha *HomeAssistant) Toggle(entityId string, serviceData ...map[string]any)
|
||||
}
|
||||
|
||||
ws.WriteMessage(req, ha.conn, ha.ctx)
|
||||
// msg, _ := ws.ReadMessage(ha.conn, ha.ctx)
|
||||
// log.Default().Println(string(msg))
|
||||
// msg, _ = ws.ReadMessage(ha.conn, ha.ctx)
|
||||
// log.Default().Println(string(msg))
|
||||
// msg, _ = ws.ReadMessage(ha.conn, ha.ctx)
|
||||
// log.Default().Println(string(msg))
|
||||
// msg, _ = ws.ReadMessage(ha.conn, ha.ctx)
|
||||
// log.Default().Println(string(msg))
|
||||
// msg, _ = ws.ReadMessage(ha.conn, ha.ctx)
|
||||
// log.Default().Println(string(msg))
|
||||
}
|
||||
|
||||
func (ha *HomeAssistant) TurnOff(entityId string) {
|
||||
|
||||
Reference in New Issue
Block a user