HEMS: make Dimmed/Curtailed tri-state (once more) (#30712)
This commit is contained in:
parent
d859ae9c7c
commit
45cab34ce9
10 changed files with 32 additions and 31 deletions
|
|
@ -83,7 +83,7 @@ func hemsDimmed(hems api.HEMS) *bool {
|
|||
return nil
|
||||
}
|
||||
|
||||
return new(hems.Dimmed())
|
||||
return hems.Dimmed()
|
||||
}
|
||||
|
||||
// hemsCurtailed returns the HEMS curtail status, nil-safe
|
||||
|
|
@ -92,5 +92,5 @@ func hemsCurtailed(hems api.HEMS) *bool {
|
|||
return nil
|
||||
}
|
||||
|
||||
return new(hems.Curtailed())
|
||||
return hems.Curtailed()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue