Skip to content

Commit 9cadb66

Browse files
authored
Merge pull request #36 from sandschi/master
Changed device_state_attributes
2 parents e716158 + 96e092b commit 9cadb66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/spacex/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def icon(self):
113113
return self._icon
114114

115115
@property
116-
def device_state_attributes(self):
116+
def extra_state_attributes(self):
117117
"""Return the attributes."""
118118
return self.attrs
119119

custom_components/spacex/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def unit_of_measurement(self):
251251
return self._unit_of_measure
252252

253253
@property
254-
def device_state_attributes(self):
254+
def extra_state_attributes(self):
255255
"""Return the attributes."""
256256
coordinator_data = self.coordinator.data
257257
starman_data = coordinator_data["starman"]

0 commit comments

Comments
 (0)