From bc5865a0ef21325cbba04ea2c3e7941d015120c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E6=B1=82=E5=9C=A3=E5=89=91?= Date: Tue, 18 Nov 2025 17:21:08 +0800 Subject: [PATCH] fix: update entity name attribute in JackeryHome sensor - Changed the `_attr_has_entity_name` attribute from `True` to `False` to reflect the correct entity naming behavior. --- custom_components/JackeryHome/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/JackeryHome/sensor.py b/custom_components/JackeryHome/sensor.py index e040a38..651f85a 100644 --- a/custom_components/JackeryHome/sensor.py +++ b/custom_components/JackeryHome/sensor.py @@ -450,7 +450,7 @@ class JackeryHomeSensor(SensorEntity): self._attr_native_value = None self._attr_available = False self._attr_should_poll = False - self._attr_has_entity_name = True + self._attr_has_entity_name =False self._coordinator = coordinator # 协调器引用 # 获取 meter_sn,对于功率传感器,使用对应的 _power 键