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