diff --git a/upk2esphome/parts/static.py b/upk2esphome/parts/static.py index 51bb5c2..1ffac37 100644 --- a/upk2esphome/parts/static.py +++ b/upk2esphome/parts/static.py @@ -14,7 +14,10 @@ def generate(yr: YamlResult, config: ConfigData, opts: Opts): yr.data["mdns"] = {} if opts.common: yr.data["api"] = {"password": opts.api_password} - yr.data["ota"] = {"password": opts.ota_password} + yr.data["ota"] = { + "platform": "esphome", + "password": opts.ota_password + } yr.data["wifi"] = { "ssid": opts.wifi_ssid, "password": opts.wifi_password,