From 456515803451f7f60e0400e8a4f5566529b258ce Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 7 Mar 2022 23:46:30 +0100 Subject: [PATCH] Fix indent Found this while the media buttons didn't work anymore --- apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py index cf3bdb07..9006acc3 100644 --- a/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py +++ b/apps/nspanel-lovelance-ui/nspanel-lovelance-ui.py @@ -186,8 +186,8 @@ class NsPanelLovelanceUI: if(btype == "button"): if(entity_id.startswith('scene')): self.api.get_entity(entity_id).call_service("turn_on") - else: - self.api.get_entity(entity_id).call_service("press") + else: + self.api.get_entity(entity_id).call_service("press") if(btype == "media-next"): self.api.get_entity(entity_id).call_service("media_next_track")