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.
@@ -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: