mirror of
https://github.com/esphome/esphome.git
synced 2025-10-13 07:13:47 +01:00
Merge branch 'helper_for_name_suffix' of https://github.com/esphome/esphome into helper_for_name_suffix
This commit is contained in:
@@ -1200,7 +1200,7 @@ def hostname(value):
|
||||
Maximum length is 63 characters per RFC 1035.
|
||||
|
||||
Note: If this limit is changed, update MAX_NAME_WITH_SUFFIX_SIZE in
|
||||
esphome/core/application.h to accommodate the new maximum length.
|
||||
esphome/core/helpers.cpp to accommodate the new maximum length.
|
||||
"""
|
||||
value = string(value)
|
||||
if re.match(r"^[a-z0-9-]{1,63}$", value, re.IGNORECASE) is not None:
|
||||
|
Reference in New Issue
Block a user