markvader / sonic

Sonic water shutoff valve Home Assistant integration by @markvader
MIT License
14 stars 4 forks source link

Remove "Measurement" state class from battery sensor. #24

Closed markvader closed 1 year ago

markvader commented 1 year ago

Using state_class of SensorStateClass.MEASUREMENT leads to warning from HA about expecting numeric value. Sonic battery level is only ever returned as string "high, medium, low"

See: https://github.com/markvader/sonic/issues/23