Use faster contains check in remote (#106435)

This commit is contained in:
J. Nick Koston 2023-12-26 21:45:25 -10:00 committed by GitHub
parent e801413c73
commit 6dbfd70e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {