mirror of
https://github.com/esphome/esphome.git
synced 2026-10-18 04:02:54 +00:00
[http_request] Test ota.http_request.flash with every field (#20829)
This commit is contained in:
@@ -42,6 +42,20 @@ button:
|
||||
md5: 0123456789abcdef0123456789abcdef
|
||||
url: http://my.ha.net:8123/local/esphome/firmware.bin
|
||||
|
||||
- ota.http_request.flash:
|
||||
id: http_request_ota
|
||||
md5_url: !lambda 'return std::string("http://my.ha.net:8123/local/esphome/firmware.md5");'
|
||||
username: user
|
||||
password: !lambda 'return std::string("pass");'
|
||||
url: http://my.ha.net:8123/local/esphome/firmware.bin
|
||||
|
||||
- ota.http_request.flash:
|
||||
id: http_request_ota
|
||||
md5: !lambda 'return std::string("0123456789abcdef0123456789abcdef");'
|
||||
username: !lambda 'return std::string("user");'
|
||||
password: pass
|
||||
url: !lambda 'return std::string("http://my.ha.net:8123/local/esphome/firmware.bin");'
|
||||
|
||||
- logger.log: "This message should be not displayed (reboot)"
|
||||
|
||||
update:
|
||||
|
||||
Reference in New Issue
Block a user