Skip to content

Commit

Permalink
Merge pull request #36 from sandschi/master
Browse files Browse the repository at this point in the history
Changed device_state_attributes
  • Loading branch information
djtimca committed Jan 18, 2022
2 parents e716158 + 96e092b commit 9cadb66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/spacex/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def icon(self):
return self._icon

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the attributes."""
return self.attrs

Expand Down
2 changes: 1 addition & 1 deletion custom_components/spacex/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def unit_of_measurement(self):
return self._unit_of_measure

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the attributes."""
coordinator_data = self.coordinator.data
starman_data = coordinator_data["starman"]
Expand Down

0 comments on commit 9cadb66

Please sign in to comment.