mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-09 16:07:21 -06:00
refactor: rename files into common naming, rename GetId to NextId, document function
This commit is contained in:
@@ -23,7 +23,7 @@ type FireEventRequest struct {
|
||||
// as `event_data`.
|
||||
func (e Event) Fire(eventType string, eventData ...map[string]any) error {
|
||||
req := FireEventRequest{
|
||||
Id: internal.GetId(),
|
||||
Id: internal.NextId(),
|
||||
Type: "fire_event",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user