mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 02:02:21 +01:00
make areas and devices consistant
This commit is contained in:
@@ -472,8 +472,7 @@ async def to_code(config):
|
||||
area_conf,
|
||||
)
|
||||
# Create a synthetic area for backwards compatibility
|
||||
area_id_obj = cv.ID(f"area_{area_slug}")
|
||||
area_var = cg.new_Pvariable(area_id_obj, type_=Area)
|
||||
area_var = cg.Pvariable(f"area_{area_slug}", Area)
|
||||
area_id = fnv1a_32bit_hash(area_conf)
|
||||
area_name = area_conf
|
||||
|
||||
|
Reference in New Issue
Block a user