From 46b419ea8b70f5f55e5a0c847273cf91f020135c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 22 Jun 2025 13:38:14 +0200 Subject: [PATCH] preen --- esphome/core/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/core/config.py b/esphome/core/config.py index 1f40d1608e..be6e2cae95 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -559,7 +559,8 @@ async def to_code(config: ConfigType) -> None: area_id_hash = fnv1a_32bit_hash(area_id.id) if area_id.id not in area_ids: raise vol.Invalid( - f"Device '{device_name}' has an area_id '{area_id.id}' that does not exist.", + f"Device '{device_name}' has an area_id '{area_id.id}'" + " that does not exist.", path=[CONF_DEVICES, dev_conf[CONF_ID], CONF_AREA_ID], ) cg.add(dev.set_area_id(area_id_hash))