mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Remove Shelly extra_attributes for RPC & REST devices (#140792)
* Remove Shelly extra_attributes for RPC devices * apply review comment
This commit is contained in:
parent
a252c19e7c
commit
f4787d469a
@ -296,7 +296,6 @@ class RpcEntityDescription(EntityDescription):
|
|||||||
value: Callable[[Any, Any], Any] | None = None
|
value: Callable[[Any, Any], Any] | None = None
|
||||||
available: Callable[[dict], bool] | None = None
|
available: Callable[[dict], bool] | None = None
|
||||||
removal_condition: Callable[[dict, dict, str], 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
|
use_polling_coordinator: bool = False
|
||||||
supported: Callable = lambda _: False
|
supported: Callable = lambda _: False
|
||||||
unit: Callable[[dict], str | None] | None = None
|
unit: Callable[[dict], str | None] | None = None
|
||||||
@ -313,7 +312,6 @@ class RestEntityDescription(EntityDescription):
|
|||||||
name: str = ""
|
name: str = ""
|
||||||
|
|
||||||
value: Callable[[dict, Any], Any] | None = None
|
value: Callable[[dict, Any], Any] | None = None
|
||||||
extra_state_attributes: Callable[[dict], dict | None] | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class ShellyBlockEntity(CoordinatorEntity[ShellyBlockCoordinator]):
|
class ShellyBlockEntity(CoordinatorEntity[ShellyBlockCoordinator]):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user