Change Sensors field type in config and response to map
This commit is contained in:
parent
c3f51f2e36
commit
daac0b3b9e
|
@ -19,10 +19,7 @@ type EnvironmentSensorConfig struct {
|
|||
}
|
||||
|
||||
type DynamicStateConfig struct {
|
||||
Sensors struct {
|
||||
Temperature []EnvironmentSensorConfig `json:"temperature"`
|
||||
Humidity []EnvironmentSensorConfig `json:"humidity"`
|
||||
} `json:"sensors"`
|
||||
Sensors map[string][]EnvironmentSensorConfig `json:"sensors"`
|
||||
State struct {
|
||||
Open struct {
|
||||
AllowedCredentials []HTTPBACredentialID `json:"allowed_credentials"`
|
||||
|
|
|
@ -23,10 +23,7 @@ type SpaceAPIResponseV14 struct {
|
|||
ML string `json:"ml"`
|
||||
Matrix string `json:"matrix"`
|
||||
} `json:"contact"`
|
||||
Sensors struct {
|
||||
Temperature []EnvironmentSensor `json:"temperature"`
|
||||
Humidity []EnvironmentSensor `json:"humidity"`
|
||||
} `json:"sensors"`
|
||||
Sensors map[string][]EnvironmentSensor `json:"sensors"`
|
||||
Feeds struct {
|
||||
Blog struct {
|
||||
Type string `json:"type"`
|
||||
|
|
Loading…
Reference in a new issue