mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Fix OTA port not being set
This commit is contained in:
parent
1267680379
commit
b6e7ad3589
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ def to_code(config):
|
|||
if CONF_PASSWORD in config:
|
||||
hash_ = hashlib.md5(config[CONF_PASSWORD].encode()).hexdigest()
|
||||
add(ota.set_auth_password_hash(hash_))
|
||||
if CONF_PORT in config:
|
||||
add(ota.set_port(config[CONF_PORT]))
|
||||
if config[CONF_SAFE_MODE]:
|
||||
add(ota.start_safe_mode())
|
||||
|
||||
|
|
Loading…
Reference in a new issue