No attribute weight removed when not available
@@ -730,6 +730,7 @@ class WeightSensor(InstantUpdateSensor):
self._extra_state_attributes["firmware"] = data["firmware"]
if self.entity_description.key == "non-stabilized weight":
self._extra_state_attributes["stabilized"] = bool(data["stabilized"])
+ if "weight removed" in data:
self._extra_state_attributes["weight removed"] = bool(
data["weight removed"]
)
