1
mirror of https://github.com/home-assistant/core synced 2024-07-09 04:58:30 +02:00

Increase size of valid entity id cache (#93125)

This commit is contained in:
J. Nick Koston 2023-05-17 06:06:52 -05:00 committed by GitHub
parent f564a0ca24
commit 32481065a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,7 +174,7 @@ def valid_domain(domain: str) -> bool:
return VALID_DOMAIN.match(domain) is not None
@functools.lru_cache(64)
@functools.lru_cache(512)
def valid_entity_id(entity_id: str) -> bool:
"""Test if an entity ID is a valid format.