mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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
|
||||
def state_attributes(self) -> dict[str, Any] | None:
|
||||
"""Return optional state attributes."""
|
||||
if not self.supported_features & RemoteEntityFeature.ACTIVITY:
|
||||
if RemoteEntityFeature.ACTIVITY not in self.supported_features:
|
||||
return None
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user