Add state class measurement to SwitchBot signal strength sensors (#79886)

This commit is contained in:
Patrick ZAJDA
2022-10-08 20:02:26 +02:00
committed by GitHub
parent 647a4ac131
commit 4baba77780

View File

@@ -28,6 +28,7 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
key="rssi",
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=False,
entity_category=EntityCategory.DIAGNOSTIC,
),
@@ -35,6 +36,7 @@ SENSOR_TYPES: dict[str, SensorEntityDescription] = {
key="wifi_rssi",
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=False,
entity_category=EntityCategory.DIAGNOSTIC,
),