Add device class to Homewizard signal strength (#180347)

This commit is contained in:
Joost Lekkerkerker
2026-08-28 17:30:18 +02:00
committed by GitHub
parent b0ee78d517
commit ca81123040
2 changed files with 3 additions and 1 deletions
@@ -138,6 +138,7 @@ SENSORS: Final[tuple[HomeWizardSensorEntityDescription, ...]] = (
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
entity_registry_enabled_default=False,
has_fn=(
lambda data: (
@@ -968,7 +968,7 @@
'object_id_base': 'Wi-Fi RSSI',
'options': dict({
}),
'original_device_class': None,
'original_device_class': <SensorDeviceClass.SIGNAL_STRENGTH: 'signal_strength'>,
'original_icon': None,
'original_name': 'Wi-Fi RSSI',
'platform': 'homewizard',
@@ -983,6 +983,7 @@
# name: test_sensors[HWE-BAT-entity_ids11][sensor.device_wi_fi_rssi:state]
StateSnapshot({
'attributes': ReadOnlyDict({
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device Wi-Fi RSSI',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',