Heating: remove session workarounds (#22069)

This commit is contained in:
andig 2025-06-26 16:59:47 +02:00 • committed by GitHub
parent d91690e463
commit 8f3280593a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View file

@ -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

View file

@ -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