Refactoring #34

Merged
bendodroid merged 10 commits from :Bendodroid-refactoring into main 2024-05-26 21:06:30 +02:00
2 changed files with 12 additions and 2 deletions
Showing only changes of commit 8015ed2be5 - Show all commits

View file

@ -46,6 +46,16 @@
"club-assistant"
]
}
],
"beverage_supply": [
{
"sensor_data": {
"unit": "btl"
},
"allowed_credentials": [
"club-assistant"
]
}
]
},
"state": {

View file

@ -45,7 +45,7 @@ type SpaceState struct {
type EnvironmentSensor struct {
Value float64 `json:"value"`
Unit string `json:"unit"`
Location string `json:"location"`
Location string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
LastChange int64 `json:"lastchange,omitempty"`
@ -61,7 +61,7 @@ type PersistentStateV14 struct {
type PersistentEnvironmentSensor struct {
Value float64 `json:"value"`
Location string `json:"location"`
Location string `json:"location,omitempty"`
Name string `json:"name,omitempty"`
LastChange int64 `json:"lastchange"`
}