Skip to content

Commit

Permalink
chore: Update to use extra state attributes (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mindmelting authored Dec 13, 2021
1 parent 17aac8f commit 2bda5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/powerpal/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def device_info(self):
}

@property
def device_state_attributes(self):
"""Return the state attributes."""
def extra_state_attributes(self):
"""Return the extra state attributes."""
return {
"attribution": ATTRIBUTION,
"id": self.config_entry.data[CONF_DEVICE_ID],
Expand Down

0 comments on commit 2bda5f8

Please sign in to comment.