Housekeeping

This commit is contained in:
Theo Arends 2019-01-03 18:07:03 +01:00
parent 67cf1dbbcf
commit f66de3111e
2 changed files with 10 additions and 7 deletions

View File

@ -1345,16 +1345,19 @@ void HandleInformation(void)
#else
func += F(D_DISABLED);
#endif // USE_EMULATION
func += F("}1" D_MDNS_DISCOVERY "}2");
#ifdef USE_DISCOVERY
func += F(D_ENABLED);
func += F("}1" D_MDNS_ADVERTISE "}2");
if (Settings.flag3.mdns_enabled) {
func += F(D_ENABLED);
func += F("}1" D_MDNS_ADVERTISE "}2");
#ifdef WEBSERVER_ADVERTISE
func += F(D_WEB_SERVER);
func += F(D_WEB_SERVER);
#else
func += F(D_DISABLED);
func += F(D_DISABLED);
#endif // WEBSERVER_ADVERTISE
} else {
func += F(D_DISABLED);
}
#else
func += F(D_DISABLED);
#endif // USE_DISCOVERY

View File

@ -89,13 +89,13 @@ a_setoption = [[
"Add UTC time offset to JSON message",
"Show hostname and IP address in GUI",
"Apply SetOption20 to Tuya",
"Use short Hass discovery messages",
"mDNS enabled",
"Use wifi network scan at restart",
"Use wifi network rescan regularly",
"Add IR raw data to JSON message",
"Change state topic from tele/STATE to stat/RESULT",
"Enable normal sleep instead of dynamic sleep",
"",
"Force local operation when button/switch topic is set",
"","","","",
"","","","",
"","","","",