From 295c0fa2c1cfdf0a07a86ad675dfaeb9995e848d Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Wed, 31 May 2023 14:55:59 -0700 Subject: [PATCH] check for cv.string --- custom_components/adaptive_lighting/_docs_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/adaptive_lighting/_docs_helpers.py b/custom_components/adaptive_lighting/_docs_helpers.py index 2f8371cb..00c83fe1 100644 --- a/custom_components/adaptive_lighting/_docs_helpers.py +++ b/custom_components/adaptive_lighting/_docs_helpers.py @@ -42,6 +42,8 @@ def _type_to_str(type_: Any) -> str: """Convert a (voluptuous) type to a string.""" if type_ == cv.entity_ids: return "list of `entity_id`s" + elif type_ == cv.string: + return "str" elif type_ in (bool, int, float, str): return f"`{type_.__name__}`" elif type_ == cv.boolean: