Use _attr_attribution in suez_water (#80527)

This commit is contained in:
epenet 2022-10-18 14:10:26 +02:00 committed by GitHub
parent 62690759d4
commit 76bd8c431b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"][