Simplify HEMS api (#31428)
This commit is contained in:
parent
199365288a
commit
e239af5d25
16 changed files with 255 additions and 121 deletions
|
|
@ -370,10 +370,10 @@ func runRoot(cmd *cobra.Command, args []string) {
|
|||
Status: struct {
|
||||
Dimmed *bool `json:"dimmed,omitempty"`
|
||||
Curtailed *int `json:"curtailed,omitempty"`
|
||||
MaxConsumptionPower float64 `json:"maxConsumptionPower,omitempty"`
|
||||
MaxConsumptionPower *float64 `json:"maxConsumptionPower,omitempty"`
|
||||
MaxProductionPower *float64 `json:"maxProductionPower,omitempty"`
|
||||
}{
|
||||
Dimmed: hemsInstance.Dimmed(),
|
||||
Dimmed: hems.Dimmed(hemsInstance),
|
||||
Curtailed: hemsInstance.CurtailedPercent(),
|
||||
MaxConsumptionPower: hemsInstance.MaxConsumptionPower(),
|
||||
MaxProductionPower: hemsInstance.MaxProductionPower(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue