Deprecate SmartThings cover battery state attribute (#140752)

This commit is contained in:
Joost Lekkerkerker 2025-03-16 20:45:46 +01:00 committed by GitHub
parent 42f0e70cde
commit 784381a25f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,7 @@ class SmartThingsCover(SmartThingsEntity, CoverEntity):
Capability.WINDOW_SHADE_LEVEL, Attribute.SHADE_LEVEL
)
# Deprecated, remove in 2025.10
self._attr_extra_state_attributes = {}
if self.supports_capability(Capability.BATTERY):
self._attr_extra_state_attributes[ATTR_BATTERY_LEVEL] = (