Skip to content

Commit

Permalink
Removed Namespace on infotext
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythm authored May 19, 2024
1 parent 7149c96 commit 3f79115
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apps/ElectricalManagement/electricalManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

__version__ = "0.1.2"
__version__ = "0.1.3"

import appdaemon.plugins.hass.hassapi as hass
import datetime
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3f79115

Please sign in to comment.