From 15e52de7e97217de46b08cf5a43de30d4a61edbd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Jun 2024 04:58:45 -0500 Subject: [PATCH] Avoid constructing unifiprotect enabled callable when unused (#120074) --- homeassistant/components/unifiprotect/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/unifiprotect/models.py b/homeassistant/components/unifiprotect/models.py index 3bd2416b550..bbd125b4085 100644 --- a/homeassistant/components/unifiprotect/models.py +++ b/homeassistant/components/unifiprotect/models.py @@ -46,7 +46,7 @@ class ProtectEntityDescription(EntityDescription, Generic[T]): # The below are set in __post_init__ has_required: Callable[[T], bool] = bool - get_ufp_enabled: Callable[[T], bool] = bool + get_ufp_enabled: Callable[[T], bool] | None = None def get_ufp_value(self, obj: T) -> Any: """Return value from UniFi Protect device; overridden in __post_init__."""