enforce ToState when using Duration

This commit is contained in:
Sam Lewis
2022-10-31 01:17:20 -04:00
parent b22b544437
commit 8a59770936
4 changed files with 13 additions and 9 deletions

View File

@@ -71,12 +71,12 @@ func get(url, token string) ([]byte, error) {
// defer resp.Body.Close()
// if resp.StatusCode == 401 {
// log.Fatalln("ERROR: Auth token is invalid. Please double check it or create a new token in your Home Assistant profile")
// panic("ERROR: Auth token is invalid. Please double check it or create a new token in your Home Assistant profile")
// }
// body, err := io.ReadAll(resp.Body)
// if err != nil {
// log.Fatalln(err)
// panic(err)
// }
// return body, nil