mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Merge branch 'dev' into dev
This commit is contained in:
commit
7082e66030
10 changed files with 24 additions and 6 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -219,7 +219,7 @@ jobs:
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest -vv --cov-report=xml --tb=native tests
|
pytest -vv --cov-report=xml --tb=native tests
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,9 @@ void ESP32BLETracker::setup() {
|
||||||
[this](ota::OTAState state, float progress, uint8_t error, ota::OTAComponent *comp) {
|
[this](ota::OTAState state, float progress, uint8_t error, ota::OTAComponent *comp) {
|
||||||
if (state == ota::OTA_STARTED) {
|
if (state == ota::OTA_STARTED) {
|
||||||
this->stop_scan();
|
this->stop_scan();
|
||||||
|
for (auto *client : this->clients_) {
|
||||||
|
client->disconnect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -104,7 +104,9 @@ std::shared_ptr<HttpContainer> HttpRequestArduino::start(std::string url, std::s
|
||||||
static const size_t HEADER_COUNT = sizeof(header_keys) / sizeof(header_keys[0]);
|
static const size_t HEADER_COUNT = sizeof(header_keys) / sizeof(header_keys[0]);
|
||||||
container->client_.collectHeaders(header_keys, HEADER_COUNT);
|
container->client_.collectHeaders(header_keys, HEADER_COUNT);
|
||||||
|
|
||||||
|
App.feed_wdt();
|
||||||
container->status_code = container->client_.sendRequest(method.c_str(), body.c_str());
|
container->status_code = container->client_.sendRequest(method.c_str(), body.c_str());
|
||||||
|
App.feed_wdt();
|
||||||
if (container->status_code < 0) {
|
if (container->status_code < 0) {
|
||||||
ESP_LOGW(TAG, "HTTP Request failed; URL: %s; Error: %s", url.c_str(),
|
ESP_LOGW(TAG, "HTTP Request failed; URL: %s; Error: %s", url.c_str(),
|
||||||
HTTPClient::errorToString(container->status_code).c_str());
|
HTTPClient::errorToString(container->status_code).c_str());
|
||||||
|
|
|
@ -117,8 +117,11 @@ std::shared_ptr<HttpContainer> HttpRequestIDF::start(std::string url, std::strin
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
App.feed_wdt();
|
||||||
container->content_length = esp_http_client_fetch_headers(client);
|
container->content_length = esp_http_client_fetch_headers(client);
|
||||||
|
App.feed_wdt();
|
||||||
container->status_code = esp_http_client_get_status_code(client);
|
container->status_code = esp_http_client_get_status_code(client);
|
||||||
|
App.feed_wdt();
|
||||||
if (is_success(container->status_code)) {
|
if (is_success(container->status_code)) {
|
||||||
container->duration_ms = millis() - start;
|
container->duration_ms = millis() - start;
|
||||||
return container;
|
return container;
|
||||||
|
@ -148,8 +151,11 @@ std::shared_ptr<HttpContainer> HttpRequestIDF::start(std::string url, std::strin
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
App.feed_wdt();
|
||||||
container->content_length = esp_http_client_fetch_headers(client);
|
container->content_length = esp_http_client_fetch_headers(client);
|
||||||
|
App.feed_wdt();
|
||||||
container->status_code = esp_http_client_get_status_code(client);
|
container->status_code = esp_http_client_get_status_code(client);
|
||||||
|
App.feed_wdt();
|
||||||
if (is_success(container->status_code)) {
|
if (is_success(container->status_code)) {
|
||||||
container->duration_ms = millis() - start;
|
container->duration_ms = millis() - start;
|
||||||
return container;
|
return container;
|
||||||
|
|
|
@ -180,7 +180,7 @@ void LD2420Component::apply_config_action() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LD2420Component::factory_reset_action() {
|
void LD2420Component::factory_reset_action() {
|
||||||
ESP_LOGCONFIG(TAG, "Setiing factory defaults...");
|
ESP_LOGCONFIG(TAG, "Setting factory defaults...");
|
||||||
if (this->set_config_mode(true) == LD2420_ERROR_TIMEOUT) {
|
if (this->set_config_mode(true) == LD2420_ERROR_TIMEOUT) {
|
||||||
ESP_LOGE(TAG, "LD2420 module has failed to respond, check baud rate and serial connections.");
|
ESP_LOGE(TAG, "LD2420 module has failed to respond, check baud rate and serial connections.");
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
|
|
|
@ -38,7 +38,7 @@ void SDMMeter::on_modbus_data(const std::vector<uint8_t> &data) {
|
||||||
|
|
||||||
ESP_LOGD(
|
ESP_LOGD(
|
||||||
TAG,
|
TAG,
|
||||||
"SDMMeter Phase %c: V=%.3f V, I=%.3f A, Active P=%.3f W, Apparent P=%.3f VA, Reactive P=%.3f VAR, PF=%.3f, "
|
"SDMMeter Phase %c: V=%.3f V, I=%.3f A, Active P=%.3f W, Apparent P=%.3f VA, Reactive P=%.3f var, PF=%.3f, "
|
||||||
"PA=%.3f °",
|
"PA=%.3f °",
|
||||||
i + 'A', voltage, current, active_power, apparent_power, reactive_power, power_factor, phase_angle);
|
i + 'A', voltage, current, active_power, apparent_power, reactive_power, power_factor, phase_angle);
|
||||||
if (phase.voltage_sensor_ != nullptr)
|
if (phase.voltage_sensor_ != nullptr)
|
||||||
|
|
|
@ -86,7 +86,7 @@ void TuyaFan::control(const fan::FanCall &call) {
|
||||||
if (this->oscillation_id_.has_value() && call.get_oscillating().has_value()) {
|
if (this->oscillation_id_.has_value() && call.get_oscillating().has_value()) {
|
||||||
if (this->oscillation_type_ == TuyaDatapointType::ENUM) {
|
if (this->oscillation_type_ == TuyaDatapointType::ENUM) {
|
||||||
this->parent_->set_enum_datapoint_value(*this->oscillation_id_, *call.get_oscillating());
|
this->parent_->set_enum_datapoint_value(*this->oscillation_id_, *call.get_oscillating());
|
||||||
} else if (this->speed_type_ == TuyaDatapointType::BOOLEAN) {
|
} else if (this->oscillation_type_ == TuyaDatapointType::BOOLEAN) {
|
||||||
this->parent_->set_boolean_datapoint_value(*this->oscillation_id_, *call.get_oscillating());
|
this->parent_->set_boolean_datapoint_value(*this->oscillation_id_, *call.get_oscillating());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1095,7 +1095,7 @@ UNIT_STEPS = "steps"
|
||||||
UNIT_VOLT = "V"
|
UNIT_VOLT = "V"
|
||||||
UNIT_VOLT_AMPS = "VA"
|
UNIT_VOLT_AMPS = "VA"
|
||||||
UNIT_VOLT_AMPS_HOURS = "VAh"
|
UNIT_VOLT_AMPS_HOURS = "VAh"
|
||||||
UNIT_VOLT_AMPS_REACTIVE = "VAR"
|
UNIT_VOLT_AMPS_REACTIVE = "var"
|
||||||
UNIT_VOLT_AMPS_REACTIVE_HOURS = "VARh"
|
UNIT_VOLT_AMPS_REACTIVE_HOURS = "VARh"
|
||||||
UNIT_WATT = "W"
|
UNIT_WATT = "W"
|
||||||
UNIT_WATT_HOURS = "Wh"
|
UNIT_WATT_HOURS = "Wh"
|
||||||
|
|
|
@ -12,7 +12,7 @@ pyserial==3.5
|
||||||
platformio==6.1.16 # When updating platformio, also update Dockerfile
|
platformio==6.1.16 # When updating platformio, also update Dockerfile
|
||||||
esptool==4.7.0
|
esptool==4.7.0
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
esphome-dashboard==20241025.0
|
esphome-dashboard==20241120.0
|
||||||
aioesphomeapi==24.6.2
|
aioesphomeapi==24.6.2
|
||||||
zeroconf==0.132.2
|
zeroconf==0.132.2
|
||||||
puremagic==1.27
|
puremagic==1.27
|
||||||
|
|
|
@ -39,3 +39,10 @@ esp32_ble_tracker:
|
||||||
- then:
|
- then:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
ESP_LOGD("ble_auto", "The scan has ended!");
|
ESP_LOGD("ble_auto", "The scan has ended!");
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: MySSID
|
||||||
|
password: password1
|
||||||
|
|
||||||
|
ota:
|
||||||
|
- platform: esphome
|
||||||
|
|
Loading…
Reference in a new issue