mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
Typo, fix string-compare standalone
This commit is contained in:
@@ -216,7 +216,7 @@ void WebAPIService::getEntities(AsyncWebServerRequest * request) {
|
|||||||
|
|
||||||
root["type"] = "entities";
|
root["type"] = "entities";
|
||||||
|
|
||||||
System::extractSettings(EMSESP_ENTITY_FILE, "Entites", root);
|
System::extractSettings(EMSESP_ENTITY_FILE, "Entities", root);
|
||||||
|
|
||||||
response->setLength();
|
response->setLength();
|
||||||
request->send(response);
|
request->send(response);
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
|
|||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
String old_syslog_host = settings.syslog_host;
|
String old_syslog_host = settings.syslog_host;
|
||||||
settings.syslog_host = root["syslog_host"] | EMSESP_DEFAULT_SYSLOG_HOST;
|
settings.syslog_host = root["syslog_host"] | EMSESP_DEFAULT_SYSLOG_HOST;
|
||||||
if (!old_syslog_host.equals(settings.syslog_host)) {
|
if (old_syslog_host != settings.syslog_host) {
|
||||||
add_flags(ChangeFlags::SYSLOG);
|
add_flags(ChangeFlags::SYSLOG);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -260,7 +260,7 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
|
|||||||
String old_locale = settings.locale;
|
String old_locale = settings.locale;
|
||||||
settings.locale = root["locale"] | EMSESP_DEFAULT_LOCALE;
|
settings.locale = root["locale"] | EMSESP_DEFAULT_LOCALE;
|
||||||
EMSESP::system_.locale(settings.locale);
|
EMSESP::system_.locale(settings.locale);
|
||||||
if (Mqtt::ha_enabled() && !old_locale.equals(settings.locale)) {
|
if (Mqtt::ha_enabled() && old_locale != settings.locale) {
|
||||||
add_flags(ChangeFlags::MQTT);
|
add_flags(ChangeFlags::MQTT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user