diff --git a/go.mod b/go.mod index 4c19be9..e63aa57 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module suah.dev/fass -go 1.23 +go 1.21 require ( fyne.io/fyne/v2 v2.5.2 diff --git a/main.go b/main.go index eb2749b..21aecaf 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,6 @@ package main import ( - "cmp" "crypto/tls" "crypto/x509" "fmt" @@ -31,7 +30,7 @@ func sortEntries(entries *hass.States) { if n := strings.Compare(an, bn); n != 0 { return n } - return cmp.Compare(a.EntityID, b.EntityID) + return strings.Compare(a.EntityID, b.EntityID) }) }