Remove Shelly extra_attributes for RPC & REST devices (#140792)

* Remove Shelly extra_attributes for RPC devices

* apply review comment
This commit is contained in:
Simone Chemelli 2025-03-17 17:27:01 +01:00 committed by GitHub
parent a252c19e7c
commit f4787d469a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -296,7 +296,6 @@ class RpcEntityDescription(EntityDescription):
value: Callable[[Any, Any], Any] | None = None
available: Callable[[dict], bool] | None = None
removal_condition: Callable[[dict, dict, str], bool] | None = None
extra_state_attributes: Callable[[dict, dict], dict | None] | None = None
use_polling_coordinator: bool = False
supported: Callable = lambda _: False
unit: Callable[[dict], str | None] | None = None
@ -313,7 +312,6 @@ class RestEntityDescription(EntityDescription):
name: str = ""
value: Callable[[dict, Any], Any] | None = None
extra_state_attributes: Callable[[dict], dict | None] | None = None
class ShellyBlockEntity(CoordinatorEntity[ShellyBlockCoordinator]):