mirror of
https://github.com/esphome/esphome.git
synced 2026-02-25 04:45:29 -07:00
Attempt to replace device_id:str with device_uid:uint32
This commit is contained in:
@@ -113,7 +113,7 @@ async def setup_entity(var, config):
|
||||
add(var.set_entity_category(config[CONF_ENTITY_CATEGORY]))
|
||||
if CONF_DEVICE_ID in config:
|
||||
device = await get_variable(config[CONF_DEVICE_ID])
|
||||
add(var.set_device_id(device.get_id()))
|
||||
add(var.set_device_uid(hash(str(device)) % 0xFFFFFFFF))
|
||||
|
||||
|
||||
def extract_registry_entry_config(
|
||||
|
||||
Reference in New Issue
Block a user