Skip to content

Commit

Permalink
Merge pull request #12 from eiros/patch-1
Browse files Browse the repository at this point in the history
Публикация данных кнопки шлюза вместе с остальными данными
  • Loading branch information
Beetle-II authored Apr 23, 2021
2 parents 5c7fa89 + 82ad7f9 commit c67d077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function getState() {
getLamp();
getPlay();
getVolume();
publishButton();

if (common.config.homeassistant) {
mqtt.publish_homeassistant(lamp);
Expand Down Expand Up @@ -561,4 +562,4 @@ fd.on('data', function (buf) {
});
fd.on('error', function (e) {
console.error(e);
});
});

0 comments on commit c67d077

Please sign in to comment.