mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Use _attr_attribution in suez_water (#80527)
This commit is contained in:
parent
62690759d4
commit
76bd8c431b
@ -93,7 +93,8 @@ class SuezSensor(SensorEntity):
|
|||||||
# _state holds the volume of consumed water during previous day
|
# _state holds the volume of consumed water during previous day
|
||||||
self._state = self.client.state
|
self._state = self.client.state
|
||||||
self._available = True
|
self._available = True
|
||||||
self._attributes["attribution"] = self.client.attributes["attribution"]
|
self._attr_attribution = self.client.attributes["attribution"]
|
||||||
|
|
||||||
self._attributes["this_month_consumption"] = {}
|
self._attributes["this_month_consumption"] = {}
|
||||||
for item in self.client.attributes["thisMonthConsumption"]:
|
for item in self.client.attributes["thisMonthConsumption"]:
|
||||||
self._attributes["this_month_consumption"][
|
self._attributes["this_month_consumption"][
|
||||||
|
Loading…
x
Reference in New Issue
Block a user