mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-15 04:12:02 -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",
|
||||
}
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@ type BaseServiceRequest struct {
|
||||
}
|
||||
|
||||
func NewBaseServiceRequest(entityId string) BaseServiceRequest {
|
||||
id := internal.GetId()
|
||||
bsr := BaseServiceRequest{
|
||||
id := internal.NextId()
|
||||
Id: id,
|
||||
RequestType: "call_service",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user