Heating: remove session workarounds (#22069)
This commit is contained in:
parent
d91690e463
commit
8f3280593a
2 changed files with 0 additions and 8 deletions
|
|
@ -122,10 +122,6 @@ func (wb *Heatpump) setMaxPower(power int64) error {
|
|||
|
||||
// Status implements the api.Charger interface
|
||||
func (wb *Heatpump) Status() (api.ChargeStatus, error) {
|
||||
if wb.lp != nil && wb.lp.GetMode() == api.ModeOff {
|
||||
return api.StatusA, nil
|
||||
}
|
||||
|
||||
power, err := wb.getMaxPower()
|
||||
if err != nil {
|
||||
return api.StatusNone, err
|
||||
|
|
|
|||
|
|
@ -129,10 +129,6 @@ func (wb *SgReady) getMode() (int64, error) {
|
|||
|
||||
// Status implements the api.Charger interface
|
||||
func (wb *SgReady) Status() (api.ChargeStatus, error) {
|
||||
if wb.lp != nil && wb.lp.GetMode() == api.ModeOff {
|
||||
return api.StatusA, nil
|
||||
}
|
||||
|
||||
mode, err := wb.getMode()
|
||||
if err != nil {
|
||||
return api.StatusNone, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue