From 66f83732bb000c00032a34e18afbb8f4b27dce53 Mon Sep 17 00:00:00 2001 From: Odianosen Ejale Date: Mon, 19 Feb 2024 20:45:31 +0000 Subject: [PATCH] Fixed typing (#1186) * Turn app into AD Base app * Added the ability to keep the messages being sent quiet * fix little conflict * Allow other apps to have access to current app * Fixed card access typing --- apps/nspanel-lovelace-ui/luibackend/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/nspanel-lovelace-ui/luibackend/controller.py b/apps/nspanel-lovelace-ui/luibackend/controller.py index 37b5f9dd..e0504077 100644 --- a/apps/nspanel-lovelace-ui/luibackend/controller.py +++ b/apps/nspanel-lovelace-ui/luibackend/controller.py @@ -3,6 +3,7 @@ import datetime import apis from helper import scale, pos_to_color, rgb_dec565 from pages import LuiPagesGen +from luibackend.config import Card class LuiController(object): @@ -460,7 +461,7 @@ class LuiController(object): apis.ha_api.get_entity(entity_id).call_service("finish") @property - def current_card(self) -> str: + def current_card(self) -> Card: """Used to get the current card""" return self._current_card