Skip to content

Commit

Permalink
Removed device_state_attributes warning (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfili authored Jan 31, 2022
1 parent 0688eae commit e6ce74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/trakt/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def unit_of_measurement(self):
return "shows"

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes of the sensor."""
attributes = {
"data": self.coordinator.data,
Expand Down

0 comments on commit e6ce74f

Please sign in to comment.