elad-bar / ha-edgeos

Integration with EdgeOS (Ubiquiti)
133 stars 24 forks source link

Fix 'TOTAL_INCREASING' in home_assistant.py #100

Closed Dude4Linux closed 1 year ago

Dude4Linux commented 1 year ago

Sensors of device class 'DATA_RATE' should be state class 'MEASUREMENT' while those of device class 'DATA_SIZE' should be state class 'TOTAL' or 'TOTAL_INCREASING'.

This change seems to be working for me for several days now. I'm not sure if additional changes are needed for the 'PACKETS' fields.

elad-bar commented 1 year ago

thanks!!!