mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 11:52:20 +01:00
Separate OTABackend
from OTA component (#6459)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
#include <esphome/components/gpio/switch/gpio_switch.h>
|
||||
#include <esphome/components/logger/logger.h>
|
||||
#include <esphome/components/ota/ota_component.h>
|
||||
#include <esphome/components/esphome/ota/ota_esphome.h>
|
||||
#include <esphome/components/wifi/wifi_component.h>
|
||||
#include <esphome/core/application.h>
|
||||
|
||||
@@ -25,7 +25,7 @@ void setup() {
|
||||
ap.set_password("password1");
|
||||
wifi->add_sta(ap);
|
||||
|
||||
auto *ota = new ota::OTAComponent(); // NOLINT
|
||||
auto *ota = new esphome::ESPHomeOTAComponent(); // NOLINT
|
||||
ota->set_port(8266);
|
||||
|
||||
App.setup();
|
||||
|
Reference in New Issue
Block a user