We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e88a2 commit d68d1c3Copy full SHA for d68d1c3
sensor.py
@@ -205,15 +205,12 @@ def state(self) -> float | None:
205
206
@property
207
def extra_state_attributes(self) -> dict[str, Any]:
208
- """Return the remaining water."""
+ """Return additional attrs."""
209
210
attrs = {}
211
212
- if (
213
- state := cast(SureFelaqua, self._coordinator.data[self._id])
214
- .raw_data()
215
- .get("status")
216
- ):
+ if state := cast(SureFelaqua, self._coordinator.data[self._id]).raw_data():
+
217
for weight in state.get("drink", {}).get("weights", {}):
218
attr_key = f"weight_{weight['index']}"
219
attrs[attr_key] = weight
0 commit comments