Skip to content

Commit

Permalink
hasscontrol: clean out the cobwebs
Browse files Browse the repository at this point in the history
  • Loading branch information
yogsoy committed Jan 26, 2025
1 parent 03e6a57 commit c605231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/hasscontrol/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ config = config[0];
if (!config.hass_url) showErrorAndQuit("No HASS URL!");
if (!config.hass_token) showErrorAndQuit("No HASS token!");

/* not used in v0.02.
function hassGetState(entityId) {
return Bangle.http(config.hass_url + "/states/" + entityId, {
"method":"GET",
Expand All @@ -29,6 +30,7 @@ function hassGetState(entityId) {
}
);
}
*/

function hassSetState(entityId, state) {

Check warning on line 35 in apps/hasscontrol/app.js

View workflow job for this annotation

GitHub Actions / build

'hassSetState' is defined but never used
Bangle.http(config.hass_url + "/states/" + entityId, {
Expand Down Expand Up @@ -69,7 +71,6 @@ config.entities.forEach((entity) => {
}

entity.actions.forEach((action) => {
let actionMenuItem = {}

if (action.type == "button") {

Expand Down

0 comments on commit c605231

Please sign in to comment.