mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 08:12:22 +01:00
lint
This commit is contained in:
@@ -112,8 +112,8 @@ async def setup_entity(var, config):
|
||||
if CONF_ENTITY_CATEGORY in 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(fnv1a_32bit_hash(str(device))))
|
||||
device_id: ID = config[CONF_DEVICE_ID]
|
||||
add(var.set_device_id(fnv1a_32bit_hash(device_id.id)))
|
||||
|
||||
|
||||
def extract_registry_entry_config(
|
||||
|
Reference in New Issue
Block a user