From c43240513cc3017ec5525413ffc4a65bfc523786 Mon Sep 17 00:00:00 2001 From: rikman122 Date: Tue, 14 Dec 2021 13:04:55 +0100 Subject: [PATCH] fix extra_state_attributes warning --- custom_components/localtuya/vacuum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/vacuum.py b/custom_components/localtuya/vacuum.py index 15a1d6b..9a14399 100644 --- a/custom_components/localtuya/vacuum.py +++ b/custom_components/localtuya/vacuum.py @@ -154,7 +154,7 @@ class LocaltuyaVacuum(LocalTuyaEntity, StateVacuumEntity): return self._battery_level @property - def device_state_attributes(self): + def extra_state_attributes(self): """Return the specific state attributes of this vacuum cleaner.""" return self._attrs