diff --git a/custom_components/smartevse/const.py b/custom_components/smartevse/const.py index 0fc19ed..30e20f6 100644 --- a/custom_components/smartevse/const.py +++ b/custom_components/smartevse/const.py @@ -6,13 +6,12 @@ UnitOfPower, UnitOfTemperature, UnitOfTime, + SIGNAL_STRENGTH_DECIBELS_MILLIWATT ) - from homeassistant.components.sensor import ( SensorDeviceClass, SensorStateClass, ) - from .models import ( SmartEVSENumberEntityDescription, SmartEVSESelectEntityDescription, @@ -94,6 +93,9 @@ SmartEVSESensorEntityDescription( key="smartevse_wifi_rssi", name="SmartEVSE Wifi RSSI", + state_class=SensorStateClass.MEASUREMENT, + unit=SIGNAL_STRENGTH_DECIBELS_MILLIWATT, + device_class=SensorDeviceClass.SIGNAL_STRENGTH, ), SmartEVSESensorEntityDescription( key="smartevse_wifi_bssid",