From 93a76ab5194abbdb133815683dc248eaa44a5fde Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 24 Feb 2024 11:26:01 -1000 Subject: [PATCH] Fix profiler.lru_stats always throwing an exception (#111249) Remove IntegrationMatcher as its now a slotted class and cannot be examined with the current methods (we also likely do not need to optimize it anymore) ``` File "/usr/src/homeassistant/homeassistant/components/profiler/__init__.py", line 201, in _lru_stats for maybe_lru in class_with_lru_attr.__dict__.values(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'IntegrationMatcher' object has no attribute '__dict__'. Did you mean: '__dir__'? ``` --- homeassistant/components/profiler/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/components/profiler/__init__.py b/homeassistant/components/profiler/__init__.py index 5e4408bba20..89240820057 100644 --- a/homeassistant/components/profiler/__init__.py +++ b/homeassistant/components/profiler/__init__.py @@ -45,7 +45,6 @@ _KNOWN_LRU_CLASSES = ( "StatesMetaManager", "StateAttributesManager", "StatisticsMetaManager", - "IntegrationMatcher", ) SERVICES = (