mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 19:48:39 +00:00
[mdns] Wrap validator error string at 80 cols
This commit is contained in:
@@ -78,7 +78,8 @@ def _require_network_interface(config: ConfigType) -> ConfigType:
|
||||
if not (has_wifi or has_ethernet):
|
||||
options = "'wifi'" if CORE.is_esp8266 else "'wifi' or 'ethernet'"
|
||||
raise cv.Invalid(
|
||||
f"mdns on this platform requires a network interface — add a {options} component to your configuration."
|
||||
"mdns on this platform requires a network interface — "
|
||||
f"add a {options} component to your configuration."
|
||||
)
|
||||
return config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user