Typo, fix string-compare standalone

This commit is contained in:
MichaelDvP
2023-03-31 17:17:33 +02:00
parent 594e79be5d
commit 5e2d97c0b9
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);
} }