Skip to content

Commit

Permalink
Add correct state class, device class and unit for sensor.smartevse.
Browse files Browse the repository at this point in the history
Added correct state class, device class and unit for sensor.smartevse_wifi_rssi.
  • Loading branch information
Pieter-HA authored Jan 4, 2024
1 parent cbcf936 commit 9d25be8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions custom_components/smartevse/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
UnitOfPower,
UnitOfTemperature,
UnitOfTime,
SIGNAL_STRENGTH_DECIBELS_MILLIWATT
)

from homeassistant.components.sensor import (
SensorDeviceClass,
SensorStateClass,
)

from .models import (
SmartEVSENumberEntityDescription,
SmartEVSESelectEntityDescription,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9d25be8

Please sign in to comment.