[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot]
2026-02-24 17:08:56 +00:00
committed by GitHub
parent 9e29bdfdad
commit 4a1f9af319
3 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -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 (
+1 -1
View File
@@ -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) {