mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use faster contains check in remote (#106435)
This commit is contained in:
parent
e801413c73
commit
6dbfd70e30
@ -214,7 +214,7 @@ class RemoteEntity(ToggleEntity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_)
|
|||||||
@property
|
@property
|
||||||
def state_attributes(self) -> dict[str, Any] | None:
|
def state_attributes(self) -> dict[str, Any] | None:
|
||||||
"""Return optional state attributes."""
|
"""Return optional state attributes."""
|
||||||
if not self.supported_features & RemoteEntityFeature.ACTIVITY:
|
if RemoteEntityFeature.ACTIVITY not in self.supported_features:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user