Skip to content

Commit

Permalink
show all available attributes for felaqua
Browse files Browse the repository at this point in the history
  • Loading branch information
benleb committed Sep 7, 2021
1 parent d68d1c3 commit ec1364f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,6 @@ def state(self) -> float | None:
if felaqua := cast(SureFelaqua, self._coordinator.data[self._id]):
return int(felaqua.water_remaining) if felaqua.water_remaining else None

@property
def extra_state_attributes(self) -> dict[str, Any]:
"""Return additional attrs."""

attrs = {}

if state := cast(SureFelaqua, self._coordinator.data[self._id]).raw_data():

for weight in state.get("drink", {}).get("weights", {}):
attr_key = f"weight_{weight['index']}"
attrs[attr_key] = weight

return attrs


class FeederBowl(SurePetcareSensor):
"""Sure Petcare Feeder Bowl."""
Expand Down

0 comments on commit ec1364f

Please sign in to comment.