mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 10:38:38 +00:00
[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
@@ -16,8 +16,12 @@ from esphome.components.esp32 import (
|
||||
get_esp32_variant,
|
||||
include_builtin_idf_component,
|
||||
)
|
||||
from esphome.components.network import CONF_PRIORITY, KEY_NETWORK_PRIORITY, get_network_priority
|
||||
from esphome.components.network import ip_address_literal
|
||||
from esphome.components.network import (
|
||||
CONF_PRIORITY,
|
||||
KEY_NETWORK_PRIORITY,
|
||||
get_network_priority,
|
||||
ip_address_literal,
|
||||
)
|
||||
from esphome.components.spi import CONF_INTERFACE_INDEX, get_spi_interface
|
||||
import esphome.config_validation as cv
|
||||
from esphome.const import (
|
||||
|
||||
@@ -12,8 +12,8 @@ from esphome.components.esp32 import (
|
||||
only_on_variant,
|
||||
)
|
||||
from esphome.components.network import (
|
||||
has_high_performance_networking,
|
||||
get_network_priority,
|
||||
has_high_performance_networking,
|
||||
ip_address_literal,
|
||||
)
|
||||
from esphome.components.psram import is_guaranteed as psram_is_guaranteed
|
||||
|
||||
@@ -155,11 +155,11 @@ void WiFiComponent::wifi_pre_setup_() {
|
||||
return;
|
||||
}
|
||||
err = esp_event_loop_create_default();
|
||||
if (err != ESP_OK && err != ESP_ERR_INVALID_STATE) {
|
||||
if (err != ESP_OK && err != ESP_ERR_INVALID_STATE) {
|
||||
ESP_LOGE(TAG, "esp_event_loop_create_default failed: %s", esp_err_to_name(err));
|
||||
this->mark_failed();
|
||||
return;
|
||||
}
|
||||
}
|
||||
esp_event_handler_instance_t instance_wifi_id, instance_ip_id;
|
||||
err = esp_event_handler_instance_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &event_handler, nullptr, &instance_wifi_id);
|
||||
if (err != ERR_OK) {
|
||||
|
||||
Reference in New Issue
Block a user