feat: Add support for PUT/DELETE state.message

Fix #33
This commit is contained in:
Bendodroid 2024-08-03 19:48:33 +02:00
commit 68d0ec05db
4 changed files with 50 additions and 7 deletions

View file

@ -38,8 +38,9 @@ type SpaceAPIResponseV14 struct {
}
type SpaceState struct {
Open bool `json:"open"`
LastChange int64 `json:"lastchange"`
Open bool `json:"open"`
LastChange int64 `json:"lastchange"`
Message string `json:"message,omitempty"`
}
type EnvironmentSensor struct {
@ -53,8 +54,9 @@ type EnvironmentSensor struct {
type PersistentStateV14 struct {
State struct {
Open bool `json:"open"`
LastChange int64 `json:"lastchange"`
Open bool `json:"open"`
LastChange int64 `json:"lastchange"`
Message string `json:"message,omitempty"`
} `json:"state"`
Sensors map[string][]PersistentEnvironmentSensor `json:"sensors,omitempty"`
}