From 3f79115d9442c69c69b75c3749cee58680a69763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Heib=C3=B8?= Date: Sun, 19 May 2024 23:07:29 +0200 Subject: [PATCH] Removed Namespace on infotext --- apps/ElectricalManagement/electricalManagement.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/ElectricalManagement/electricalManagement.py b/apps/ElectricalManagement/electricalManagement.py index b5362b1..83a1fee 100644 --- a/apps/ElectricalManagement/electricalManagement.py +++ b/apps/ElectricalManagement/electricalManagement.py @@ -4,7 +4,7 @@ """ -__version__ = "0.1.2" +__version__ = "0.1.3" import appdaemon.plugins.hass.hassapi as hass import datetime @@ -2692,15 +2692,9 @@ def sumAndInformChargetime(self, kwargs) -> None: if self.infotext: infotxt:str = f"Start charge at {self.chargingStart}. Finish estimated at {self.chargingStop}. Stop no later than {charging_Stop}" - if self.namespace: - self.ADapi.set_state(self.infotext, - namespace = self.namespace, - state = infotxt - ) - else: - self.ADapi.set_state(self.infotext, - state = infotxt - ) + self.ADapi.set_state(self.infotext, + state = infotxt + ) if ( self.chargingStart != self.informedStart