Fix radon precision for Airthings BLE (#113185)
This commit is contained in:
parent
e347096ef5
commit
45fb5bcb42
1 changed files with 3 additions and 0 deletions
|
@ -52,12 +52,14 @@ SENSORS_MAPPING_TEMPLATE: dict[str, SensorEntityDescription] = {
|
||||||
key="radon_1day_avg",
|
key="radon_1day_avg",
|
||||||
translation_key="radon_1day_avg",
|
translation_key="radon_1day_avg",
|
||||||
native_unit_of_measurement=VOLUME_BECQUEREL,
|
native_unit_of_measurement=VOLUME_BECQUEREL,
|
||||||
|
suggested_display_precision=0,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
"radon_longterm_avg": SensorEntityDescription(
|
"radon_longterm_avg": SensorEntityDescription(
|
||||||
key="radon_longterm_avg",
|
key="radon_longterm_avg",
|
||||||
translation_key="radon_longterm_avg",
|
translation_key="radon_longterm_avg",
|
||||||
native_unit_of_measurement=VOLUME_BECQUEREL,
|
native_unit_of_measurement=VOLUME_BECQUEREL,
|
||||||
|
suggested_display_precision=0,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
"radon_1day_level": SensorEntityDescription(
|
"radon_1day_level": SensorEntityDescription(
|
||||||
|
@ -170,6 +172,7 @@ async def async_setup_entry(
|
||||||
sensors_mapping[key] = dataclasses.replace(
|
sensors_mapping[key] = dataclasses.replace(
|
||||||
val,
|
val,
|
||||||
native_unit_of_measurement=VOLUME_PICOCURIE,
|
native_unit_of_measurement=VOLUME_PICOCURIE,
|
||||||
|
suggested_display_precision=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
entities = []
|
entities = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue