diff --git a/charger/easee.go b/charger/easee.go index e94710721..9b32e4e50 100644 --- a/charger/easee.go +++ b/charger/easee.go @@ -40,8 +40,6 @@ import ( "golang.org/x/oauth2" ) -const obsTimeout = 5 * time.Minute - // Easee charger implementation type Easee struct { *request.Helper @@ -751,10 +749,6 @@ func (c *Easee) CurrentPower() (float64, error) { c.mux.RLock() defer c.mux.RUnlock() - if t, ok := c.obsTime[easee.TOTAL_POWER]; ok && time.Since(t) > obsTimeout { - return 0, nil - } - return c.currentPower, nil } @@ -773,11 +767,6 @@ var _ api.PhaseCurrents = (*Easee)(nil) func (c *Easee) Currents() (float64, float64, float64, error) { c.mux.RLock() defer c.mux.RUnlock() - - if t, ok := c.obsTime[easee.IN_CURRENT_T3]; ok && time.Since(t) > obsTimeout { - return 0, 0, 0, nil - } - return c.currentL1, c.currentL2, c.currentL3, nil }