mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Increase size of valid entity id cache (#93125)
This commit is contained in:
@@ -174,7 +174,7 @@ def valid_domain(domain: str) -> bool:
|
|||||||
return VALID_DOMAIN.match(domain) is not None
|
return VALID_DOMAIN.match(domain) is not None
|
||||||
|
|
||||||
|
|
||||||
@functools.lru_cache(64)
|
@functools.lru_cache(512)
|
||||||
def valid_entity_id(entity_id: str) -> bool:
|
def valid_entity_id(entity_id: str) -> bool:
|
||||||
"""Test if an entity ID is a valid format.
|
"""Test if an entity ID is a valid format.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user