From ee0f57ea0210e7d23564ed61b5a11f3d9589f47e Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 25 Aug 2022 23:16:40 +0200 Subject: [PATCH] Update pages.py --- apps/nspanel-lovelace-ui/luibackend/pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/pages.py b/apps/nspanel-lovelace-ui/luibackend/pages.py index 8a23ac12..744370f5 100644 --- a/apps/nspanel-lovelace-ui/luibackend/pages.py +++ b/apps/nspanel-lovelace-ui/luibackend/pages.py @@ -636,11 +636,11 @@ class LuiPagesGen(object): if bits & 0b00001111: pos_translation = get_translation(self._locale, "frontend.ui.card.cover.position") if bits & 0b00000001: # SUPPORT_OPEN - if ( pos != 100 and not (entity.state == "open" and pos == "disable") ) or entity.assumedState: + if ( pos != 100 and not (entity.state == "open" and pos == "disable") ): icon_up_status = "enable" icon_up = get_action_id_ha(ha_type=entityType, action="open", device_class=device_class) if bits & 0b00000010: # SUPPORT_CLOSE - if ( pos != 0 and not (entity.state == "closed" and pos == "disable") ) or entity.assumedState: + if ( pos != 0 and not (entity.state == "closed" and pos == "disable") ): icon_down_status = "enable" icon_down = get_action_id_ha(ha_type=entityType, action="close", device_class=device_class) #if bits & 0b00000100: # SUPPORT_SET_POSITION