From 8c6b3fddaf5b3ddaac4ff7b4ae7fddb8057584e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Fri, 1 Apr 2022 21:19:39 +0200 Subject: [PATCH] Use _attr_native_unit_of_measurement (#2586) --- custom_components/hacs/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hacs/sensor.py b/custom_components/hacs/sensor.py index e5fc065d74d..a6741d1dbd8 100644 --- a/custom_components/hacs/sensor.py +++ b/custom_components/hacs/sensor.py @@ -22,7 +22,7 @@ class HACSSensor(HacsSystemEntity, SensorEntity): """HACS Sensor class.""" _attr_name = "hacs" - _attr_unit_of_measurement = "pending update(s)" + _attr_native_unit_of_measurement = "pending update(s)" _attr_native_value = None @callback