From 2109921eee782d46ab0ab911b69f87786e1a5f0f Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Sat, 26 Sep 2020 13:13:44 +0200 Subject: [PATCH] rename function --- custom_components/adaptive_lighting/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/adaptive_lighting/__init__.py b/custom_components/adaptive_lighting/__init__.py index c68c5166..207ea4e6 100755 --- a/custom_components/adaptive_lighting/__init__.py +++ b/custom_components/adaptive_lighting/__init__.py @@ -41,7 +41,7 @@ _LOGGER = logging.getLogger(__name__) PLATFORMS = ["switch"] -def _all_unique_profiles(value): +def _all_unique_names(value): """Validate that all enties have a unique profile name.""" hosts = [device[CONF_NAME] for device in value] schema = vol.Schema(vol.Unique()) @@ -50,7 +50,7 @@ def _all_unique_profiles(value): CONFIG_SCHEMA = vol.Schema( - {DOMAIN: vol.All(cv.ensure_list, [_DOMAIN_SCHEMA], _all_unique_profiles)}, + {DOMAIN: vol.All(cv.ensure_list, [_DOMAIN_SCHEMA], _all_unique_names)}, extra=vol.ALLOW_EXTRA, )