mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Use faster contains check in remote (#106435)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user