mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +01:00
Rename ref in codegen
This commit is contained in:
@@ -112,8 +112,8 @@ async def setup_entity(var, config):
|
|||||||
if CONF_ENTITY_CATEGORY in config:
|
if CONF_ENTITY_CATEGORY in config:
|
||||||
add(var.set_entity_category(config[CONF_ENTITY_CATEGORY]))
|
add(var.set_entity_category(config[CONF_ENTITY_CATEGORY]))
|
||||||
if CONF_DEVICE_ID in config:
|
if CONF_DEVICE_ID in config:
|
||||||
parent = await get_variable(config[CONF_DEVICE_ID])
|
device = await get_variable(config[CONF_DEVICE_ID])
|
||||||
add(var.set_device_id(parent.get_id()))
|
add(var.set_device_id(device.get_id()))
|
||||||
|
|
||||||
|
|
||||||
def extract_registry_entry_config(
|
def extract_registry_entry_config(
|
||||||
|
Reference in New Issue
Block a user