Skip to content

Commit

Permalink
ENABLE_OLD_YAML_GENERATOR
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jan 7, 2025
1 parent a2a2c7b commit 323e1f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/httpserver/http_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,6 +2206,7 @@ int http_fn_ha_cfg(http_request_t* request) {
http_html_start(request, "Home Assistant Setup");
poststr_h4(request, "Home Assistant Cfg");
hprintf255(request, "<h4>Note that your short device name is: %s</h4>", shortDeviceName);
#if ENABLE_OLD_YAML_GENERATOR
poststr_h4(request, "Paste this to configuration yaml");
poststr(request, "<h5>Make sure that you have \"switch:\" keyword only once! Home Assistant doesn't like dup keywords.</h5>");
poststr(request, "<h5>You can also use \"switch MyDeviceName:\" to avoid keyword duplication!</h5>");
Expand Down Expand Up @@ -2353,6 +2354,7 @@ int http_fn_ha_cfg(http_request_t* request) {
#endif

poststr(request, "</textarea>");
#endif
poststr(request, "<br/><div><label for=\"ha_disc_topic\">Discovery topic:</label><input id=\"ha_disc_topic\" value=\"homeassistant\"><button onclick=\"send_ha_disc();\">Start Home Assistant Discovery</button>&nbsp;<form action=\"cfg_mqtt\" class='disp-inline'><button type=\"submit\">Configure MQTT</button></form></div><br/>");
poststr(request, htmlFooterReturnToCfgOrMainPage);
http_html_end(request);
Expand Down
4 changes: 4 additions & 0 deletions src/obk_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
#define ENABLE_NTP_DST 1
#define ENABLE_DRIVER_LED 1
#define ENABLE_LED_BASIC 1
#define ENABLE_DRIVER_TESTPOWER 1
#define ENABLE_DRIVER_BL0942 1
#define ENABLE_DRIVER_BL0937 1
#define ENABLE_DRIVER_CSE7766 1
#define ENABLE_DRIVER_HT16K33 1
#define ENABLE_DRIVER_MAX72XX 1
#define ENABLE_DRIVER_TUYAMCU 1
Expand Down

0 comments on commit 323e1f6

Please sign in to comment.