mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-02 19:08:54 +02:00
Convert components to async-def syntax (#1821)
This commit is contained in:
@@ -23,6 +23,6 @@ CONFIG_SCHEMA = (
|
||||
)
|
||||
|
||||
|
||||
def to_code(config):
|
||||
var = yield mcp23xxx_base.register_mcp23xxx(config)
|
||||
yield i2c.register_i2c_device(var, config)
|
||||
async def to_code(config):
|
||||
var = await mcp23xxx_base.register_mcp23xxx(config)
|
||||
await i2c.register_i2c_device(var, config)
|
||||
|
||||
Reference in New Issue
Block a user