Amended documentation about special characters in the glance view

And a couple of code tidy items too.
This commit is contained in:
Philip Abbey
2026-05-15 09:41:44 +01:00
parent ed89d1da74
commit dbd2b4a568
3 changed files with 3 additions and 4 deletions

View File

@@ -228,9 +228,7 @@ class HomeAssistantToggleMenuItem extends WatchUi.ToggleMenuItem {
// If there's no response body, let's assume that what we did actually happened and flip the toggle.
if (data.size() == 0) {
setEnabled(!isEnabled());
}
else {
} else {
for(var i = 0; i < data.size(); i++) {
if ((data[i].get("entity_id") as Lang.String).equals(mData.get("entity_id"))) {
var state = data[i].get("state") as Lang.String;