Remove signal strength device class from hunterdouglas_powerview (#95113)

This commit is contained in:
J. Nick Koston
2023-06-23 09:11:19 -05:00
committed by GitHub
parent 8fd930ba87
commit 85a9654e52

View File

@@ -70,7 +70,7 @@ SENSORS: Final = [
PowerviewSensorDescription(
key="signal",
name="Signal",
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
icon="mdi:signal",
native_unit_of_measurement=PERCENTAGE,
native_value_fn=lambda shade: round(
shade.raw_data[ATTR_SIGNAL_STRENGTH] / ATTR_SIGNAL_STRENGTH_MAX * 100