From ac017f92996ef9cf461920b0eb7357434f5804bb Mon Sep 17 00:00:00 2001 From: Paillomams Date: Wed, 16 Mar 2022 23:50:01 -0400 Subject: [PATCH] Replace deprecated device_state_attributes with extra_state_attributes --- custom_components/google_fit/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/google_fit/sensor.py b/custom_components/google_fit/sensor.py index 406e194..6f6cf78 100644 --- a/custom_components/google_fit/sensor.py +++ b/custom_components/google_fit/sensor.py @@ -242,7 +242,7 @@ def state_attributes(self): } @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return device specific state attributes.""" return self._attributes