1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 18:22:22 +01:00

make areas and devices consistant

This commit is contained in:
J. Nick Koston
2025-06-21 17:19:16 +02:00
parent f44ecd0891
commit 4a7958586e

View File

@@ -472,8 +472,7 @@ async def to_code(config):
area_conf, area_conf,
) )
# Create a synthetic area for backwards compatibility # Create a synthetic area for backwards compatibility
area_id_obj = cv.ID(f"area_{area_slug}") area_var = cg.Pvariable(f"area_{area_slug}", Area)
area_var = cg.new_Pvariable(area_id_obj, type_=Area)
area_id = fnv1a_32bit_hash(area_conf) area_id = fnv1a_32bit_hash(area_conf)
area_name = area_conf area_name = area_conf