1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Fix WIFI power_save_mode option

This commit is contained in:
Otto Winter 2018-10-13 19:37:30 +02:00
parent 4a2cdbf31c
commit aa7903b470
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -135,7 +135,7 @@ def to_code(config):
add(wifi.set_reboot_timeout(config[CONF_REBOOT_TIMEOUT]))
if CONF_POWER_SAVE_MODE in config:
add(wifi.set_power_save_mode(WIFI_POWER_SAVE_MODES[CONF_POWER_SAVE_MODE]))
add(wifi.set_power_save_mode(WIFI_POWER_SAVE_MODES[config[CONF_POWER_SAVE_MODE]]))
def lib_deps(config):