Skip to content

Commit

Permalink
Bugfix: replace mapstructure with yaml tags. Fixes config parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tedpearson committed Feb 19, 2024
1 parent 9537079 commit 1cc6a73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func AllOccupancy(sensors []Sensor) bool {
type Config struct {
InfluxDB struct {
Host string
AuthToken string `mapstructure:"auth_token"`
AuthToken string `yaml:"auth_token"`
Org string
Bucket string
Measurements struct {
Expand All @@ -282,10 +282,10 @@ type Config struct {
}
}
Ecobee struct {
ThermostatId string `mapstructure:"thermostat_id"`
AppId string `mapstructure:"app_id"`
AuthCacheFile string `mapstructure:"auth_cache_file"`
PollCron string `mapstructure:"poll_cron"`
ThermostatId string `yaml:"thermostat_id"`
AppId string `yaml:"app_id"`
AuthCacheFile string `yaml:"auth_cache_file"`
PollCron string `yaml:"poll_cron"`
}
}

Expand Down

0 comments on commit 1cc6a73

Please sign in to comment.