From 2bda5f8858755070d97bf106c54fffbe34c70338 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Mon, 13 Dec 2021 21:58:07 +1100 Subject: [PATCH] chore: Update to use extra state attributes (#9) --- custom_components/powerpal/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/powerpal/sensor.py b/custom_components/powerpal/sensor.py index 9d256c0..7bb61ef 100644 --- a/custom_components/powerpal/sensor.py +++ b/custom_components/powerpal/sensor.py @@ -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],