1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 03:42:20 +01:00

Convert more code to async-def syntax (#2095)

This commit is contained in:
Otto Winter
2021-07-30 00:54:10 +02:00
committed by GitHub
parent 2966a62429
commit 34e8979d40
5 changed files with 22 additions and 22 deletions

View File

@@ -18,8 +18,8 @@ CONFIG_SCHEMA = (
)
def to_code(config):
async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
yield cg.register_component(var, config)
yield climate.register_climate(var, config)
yield ble_client.register_ble_node(var, config)
await cg.register_component(var, config)
await climate.register_climate(var, config)
await ble_client.register_ble_node(var, config)