Selaa lähdekoodia

Rename device_state_attributes to extra_state_attributes.

The rename happened in HA 2021.04, which is earlier than the current supported
version. A deprecation warning was finally added in 2021.12, and the old name
will be removed in 2022.4.
Jason Rumney 4 vuotta sitten
vanhempi
commit
5fb273165c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      custom_components/tuya_local/helpers/mixin.py

+ 1 - 1
custom_components/tuya_local/helpers/mixin.py

@@ -58,7 +58,7 @@ class TuyaLocalEntity:
             return super().icon
 
     @property
-    def device_state_attributes(self):
+    def extra_state_attributes(self):
         """Get additional attributes that the platform itself does not support."""
         attr = {}
         for a in self._attr_dps: