Skip to content

Commit d68d1c3

Browse files
committed
fix felaqua attributes
1 parent 69e88a2 commit d68d1c3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sensor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,12 @@ def state(self) -> float | None:
205205

206206
@property
207207
def extra_state_attributes(self) -> dict[str, Any]:
208-
"""Return the remaining water."""
208+
"""Return additional attrs."""
209209

210210
attrs = {}
211211

212-
if (
213-
state := cast(SureFelaqua, self._coordinator.data[self._id])
214-
.raw_data()
215-
.get("status")
216-
):
212+
if state := cast(SureFelaqua, self._coordinator.data[self._id]).raw_data():
213+
217214
for weight in state.get("drink", {}).get("weights", {}):
218215
attr_key = f"weight_{weight['index']}"
219216
attrs[attr_key] = weight

0 commit comments

Comments
 (0)