1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

Extract core comments from #6241 (#6643)

This commit is contained in:
Alex Boyd
2024-04-26 05:41:43 -06:00
committed by GitHub
parent cd91c7050c
commit 9bfb36f58b
3 changed files with 12 additions and 2 deletions

View File

@@ -304,7 +304,7 @@ def string(value):
"""Validate that a configuration value is a string. If not, automatically converts to a string.
Note that this can be lossy, for example the input value 60.00 (float) will be turned into
"60.0" (string). For values where this could be a problem `string_string` has to be used.
"60.0" (string). For values where this could be a problem `string_strict` has to be used.
"""
check_not_templatable(value)
if isinstance(value, (dict, list)):