From 76bd8c431b7e45ec3c5fc872d3d36736534f0433 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 18 Oct 2022 14:10:26 +0200 Subject: [PATCH] Use _attr_attribution in suez_water (#80527) --- homeassistant/components/suez_water/sensor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/suez_water/sensor.py b/homeassistant/components/suez_water/sensor.py index 77b1de6555e..4c0fe16a197 100644 --- a/homeassistant/components/suez_water/sensor.py +++ b/homeassistant/components/suez_water/sensor.py @@ -93,7 +93,8 @@ class SuezSensor(SensorEntity): # _state holds the volume of consumed water during previous day self._state = self.client.state self._available = True - self._attributes["attribution"] = self.client.attributes["attribution"] + self._attr_attribution = self.client.attributes["attribution"] + self._attributes["this_month_consumption"] = {} for item in self.client.attributes["thisMonthConsumption"]: self._attributes["this_month_consumption"][