From 4f32a59bf0c2abfeb440f7b537bd500502aeddfc Mon Sep 17 00:00:00 2001 From: EverythingSmartHome Date: Wed, 1 Nov 2023 10:21:47 +0000 Subject: [PATCH] Fix unit of measurement on target distance --- everything-presence-one-beta.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/everything-presence-one-beta.yaml b/everything-presence-one-beta.yaml index 5acdf0d..5e120d1 100644 --- a/everything-presence-one-beta.yaml +++ b/everything-presence-one-beta.yaml @@ -112,21 +112,29 @@ sensor: id: target_distance_1_m accuracy_decimals: 2 disabled_by_default: false + device_class: distance + unit_of_measurement: "m" - platform: template name: Target 2 Distance # Don't change id: target_distance_2_m accuracy_decimals: 2 disabled_by_default: True + device_class: distance + unit_of_measurement: "m" - platform: template name: Target 3 Distance # Don't change id: target_distance_3_m accuracy_decimals: 2 disabled_by_default: True + device_class: distance + unit_of_measurement: "m" - platform: template name: Target 4 Distance # Don't change id: target_distance_4_m accuracy_decimals: 2 disabled_by_default: True + device_class: distance + unit_of_measurement: "m" - platform: template name: "Target 1 SNR" # Don't change disabled_by_default: True