mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
value can be a float now
This commit is contained in:
@@ -84,7 +84,7 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=(
|
value_fn=(
|
||||||
lambda hass, service_info: (
|
lambda hass, service_info: round(
|
||||||
bluetooth.async_get_learned_advertising_interval(
|
bluetooth.async_get_learned_advertising_interval(
|
||||||
hass, service_info.address
|
hass, service_info.address
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user