Skip to content

Commit

Permalink
fix: change to Home Assistant 2021.12.0+ core
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Dec 3, 2021
1 parent c6c597a commit c941615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/openei/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def available(self) -> bool:
return self.coordinator.last_update_success

@property
def device_state_attributes(self) -> Optional[dict]:
def extra_state_attributes(self) -> Optional[dict]:
"""Return sesnsor attributes."""
attrs = {}
attrs[ATTR_ATTRIBUTION] = ATTRIBUTION
Expand Down

0 comments on commit c941615

Please sign in to comment.