mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix radon precision for Airthings BLE (#113185)
This commit is contained in:
parent
e347096ef5
commit
45fb5bcb42
@ -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…
x
Reference in New Issue
Block a user