forked from home-assistant/core
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__'?
```
This commit is contained in:
@@ -45,7 +45,6 @@ _KNOWN_LRU_CLASSES = (
|
||||
"StatesMetaManager",
|
||||
"StateAttributesManager",
|
||||
"StatisticsMetaManager",
|
||||
"IntegrationMatcher",
|
||||
)
|
||||
|
||||
SERVICES = (
|
||||
|
||||
Reference in New Issue
Block a user