Changed discovery to sent msg, fixed power check

This commit is contained in:
Indu Prakash
2022-10-16 07:29:59 -05:00
parent 22f65b892a
commit f0b3ae27dc
3 changed files with 19 additions and 5 deletions

View File

@ -9,7 +9,7 @@ function send_ha_disc() {
);
xhr.onload = function () {
if (xhr.status === 200) {
alert("MQTT discovery queued");
alert(xhr.responseText);
} else if (xhr.status === 404) {
alert("Error invoking ha_discovery");
}