Skip to content

Commit

Permalink
Replace deprecated device_state_attributes
Browse files Browse the repository at this point in the history
with extra_state_attributes
  • Loading branch information
pailloM committed Mar 17, 2022
1 parent 6ab1014 commit ac017f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/google_fit/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def state_attributes(self):
}

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return device specific state attributes."""
return self._attributes

Expand Down

0 comments on commit ac017f9

Please sign in to comment.