Convert components to async-def syntax (#1821)

This commit is contained in:
Otto Winter
2021-05-24 10:58:29 +02:00
committed by GitHub
parent b92702a312
commit 2376a2c941
296 changed files with 1423 additions and 1424 deletions
+5 -5
View File
@@ -59,8 +59,8 @@ def setup_conf(config, key):
yield text_sensor.register_text_sensor(var, conf)
def to_code(config):
yield setup_conf(config, CONF_IP_ADDRESS)
yield setup_conf(config, CONF_SSID)
yield setup_conf(config, CONF_BSSID)
yield setup_conf(config, CONF_MAC_ADDRESS)
async def to_code(config):
await setup_conf(config, CONF_IP_ADDRESS)
await setup_conf(config, CONF_SSID)
await setup_conf(config, CONF_BSSID)
await setup_conf(config, CONF_MAC_ADDRESS)