You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your work!
My issue is that I'm experiencing way too many decimals in value, as the image shows:
I believe this has something to do with floats, round-off error or such. After several hours of googling, I wasn't able to do the rounding in HA, so I ended up adding round( ) to sensor.py (line 158) return round(sum((w['waterconsumption'] for w in self._withdrawals if w['starttime'] >= since)),1)
The text was updated successfully, but these errors were encountered:
First of all, thanks for your work!
My issue is that I'm experiencing way too many decimals in value, as the image shows:
I believe this has something to do with floats, round-off error or such. After several hours of googling, I wasn't able to do the rounding in HA, so I ended up adding round( ) to sensor.py (line 158)
return round(sum((w['waterconsumption'] for w in self._withdrawals if w['starttime'] >= since)),1)
The text was updated successfully, but these errors were encountered: