Skip to content

Commit

Permalink
Fix missing extra attributes on binary_sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe committed Apr 1, 2022
1 parent 86aff4f commit 5a9bbb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/bmw_connected_drive/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ def is_on(self) -> bool:
vehicle_state = self.vehicle.status
result = self._attrs.copy()

return self.entity_description.value_fn(
sensor_value = self.entity_description.value_fn(
vehicle_state, result, self._unit_system
)

self._attr_extra_state_attributes = result

return sensor_value

0 comments on commit 5a9bbb2

Please sign in to comment.