From 61ce328ce1866c7e307dde503cbea0868c27397b Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Tue, 6 Feb 2024 03:00:45 +0100 Subject: [PATCH] Fix docstring length in ZHA sensor class (#109774) Fix ZHA sensor docstring length --- homeassistant/components/zha/sensor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index 929ac803b10..167edc935d0 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -849,9 +849,10 @@ class SmartEnergySummationReceived(PolledSmartEnergySummation): """Entity Factory. This attribute only started to be initialized in HA 2024.2.0, - so the entity would still be created on the first HA start after the upgrade for existing devices, - as the initialization to see if an attribute is unsupported happens later in the background. - To avoid creating a lot of unnecessary entities for existing devices, + so the entity would be created on the first HA start after the + upgrade for existing devices, as the initialization to see if + an attribute is unsupported happens later in the background. + To avoid creating unnecessary entities for existing devices, wait until the attribute was properly initialized once for now. """ if cluster_handlers[0].cluster.get(cls._attribute_name) is None: