Skip to content

Commit

Permalink
Merge pull request #15 from ToxicDeathX/master
Browse files Browse the repository at this point in the history
Replace device_state_attributes with extra_state_attributes
  • Loading branch information
swartjean authored Dec 12, 2021
2 parents 82b68e8 + fd798a3 commit c78468b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/eskom_loadshedding/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def device_info(self):
}

@property
def device_state_attributes(self):
def extra_state_attributes(self):
"""Return the state attributes."""
return {
"stage": self.coordinator.data.get("stage"),
Expand Down

0 comments on commit c78468b

Please sign in to comment.