mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 17:48:40 +00:00
Fix comment typos (#12828)
This commit is contained in:
@@ -250,7 +250,7 @@ async def register_i2c_device(var, config):
|
||||
|
||||
Sets the i2c bus to use and the i2c address.
|
||||
|
||||
This is a coroutine, you need to await it with a 'yield' expression!
|
||||
This is a coroutine, you need to await it with an 'await' expression!
|
||||
"""
|
||||
parent = await cg.get_variable(config[CONF_I2C_ID])
|
||||
cg.add(var.set_i2c_bus(parent))
|
||||
|
||||
@@ -32,7 +32,7 @@ async def register_one_wire_device(var, config):
|
||||
|
||||
Sets the 1-wire bus to use and the 1-wire address.
|
||||
|
||||
This is a coroutine, you need to await it with a 'yield' expression!
|
||||
This is a coroutine, you need to await it with an 'await' expression!
|
||||
"""
|
||||
parent = await cg.get_variable(config[CONF_ONE_WIRE_ID])
|
||||
cg.add(var.set_one_wire_bus(parent))
|
||||
|
||||
@@ -482,7 +482,7 @@ def final_validate_device_schema(
|
||||
async def register_uart_device(var, config):
|
||||
"""Register a UART device, setting up all the internal values.
|
||||
|
||||
This is a coroutine, you need to await it with a 'yield' expression!
|
||||
This is a coroutine, you need to await it with an 'await' expression!
|
||||
"""
|
||||
parent = await cg.get_variable(config[CONF_UART_ID])
|
||||
cg.add(var.set_uart_parent(parent))
|
||||
|
||||
@@ -643,7 +643,7 @@ async def get_variable(id_: ID) -> "MockObj":
|
||||
Wait for the given ID to be defined in the code generation and
|
||||
return it as a MockObj.
|
||||
|
||||
This is a coroutine, you need to await it with a 'await' expression!
|
||||
This is a coroutine, you need to await it with an 'await' expression!
|
||||
|
||||
:param id_: The ID to retrieve
|
||||
:return: The variable as a MockObj.
|
||||
@@ -656,7 +656,7 @@ async def get_variable_with_full_id(id_: ID) -> tuple[ID, "MockObj"]:
|
||||
Wait for the given ID to be defined in the code generation and
|
||||
return it as a MockObj.
|
||||
|
||||
This is a coroutine, you need to await it with a 'await' expression!
|
||||
This is a coroutine, you need to await it with an 'await' expression!
|
||||
|
||||
:param id_: The ID to retrieve
|
||||
:return: The variable as a MockObj.
|
||||
|
||||
Reference in New Issue
Block a user