Skip to content

Commit

Permalink
Use extra_state_attributes instesad of device_state_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
CJNE committed Dec 13, 2021
1 parent ad56de2 commit e0b5def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sunspec/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def state_class(self):
return STATE_CLASS_MEASUREMENT

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes."""
attrs = {
"integration": DOMAIN,
Expand Down

0 comments on commit e0b5def

Please sign in to comment.