fix(wslink): Definiton of HCHO, VOC, T9 battery diplicates.
parent
2f7d96f8d3
commit
e3d712bd54
|
|
@ -551,39 +551,4 @@ SENSOR_TYPES_WSLINK: tuple[WeatherSensorEntityDescription, ...] = (
|
||||||
suggested_display_precision=0,
|
suggested_display_precision=0,
|
||||||
value_fn=battery_5step_to_pct,
|
value_fn=battery_5step_to_pct,
|
||||||
),
|
),
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=HCHO,
|
|
||||||
translation_key=HCHO,
|
|
||||||
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS,
|
|
||||||
native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
icon="mdi:molecule",
|
|
||||||
value_fn=to_int,
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=HCHO,
|
|
||||||
translation_key=HCHO,
|
|
||||||
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS,
|
|
||||||
native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
icon="mdi:molecule",
|
|
||||||
value_fn=to_int,
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=VOC,
|
|
||||||
translation_key=VOC,
|
|
||||||
device_class=SensorDeviceClass.ENUM,
|
|
||||||
options=list(VOCLevel),
|
|
||||||
icon="mdi:air-filter",
|
|
||||||
value_from_data_fn=lambda data: voc_level_to_text(data.get(VOC, None)),
|
|
||||||
),
|
|
||||||
WeatherSensorEntityDescription(
|
|
||||||
key=T9_BATTERY,
|
|
||||||
translation_key=T9_BATTERY,
|
|
||||||
device_class=SensorDeviceClass.BATTERY,
|
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
|
||||||
suggested_display_precision=0,
|
|
||||||
value_fn=battery_5step_to_pct,
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue