From 6dbfd70e300dc0c1d6af066e888c57fa78cebdd8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 26 Dec 2023 21:45:25 -1000 Subject: [PATCH] Use faster contains check in remote (#106435) --- homeassistant/components/remote/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/remote/__init__.py b/homeassistant/components/remote/__init__.py index 5d076c0768f..8c3d094710e 100644 --- a/homeassistant/components/remote/__init__.py +++ b/homeassistant/components/remote/__init__.py @@ -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 {