Skip to content

Commit

Permalink
Update startup.py for non-HA SuperTimezone define
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianUK6 authored Aug 2, 2023
1 parent 3f3b797 commit d78671f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def getInvDeets(HOST):
except:
logger.error("Gathering inverter details for " + str(HOST) + " failed.")
return None


SuperTimezone={} # 02-Aug-23 default it to None so that it is defined for saving in settngs.py for non-HA usage (otherwise exception)

try:
logger.debug("SUPERVISOR_TOKEN is: "+ os.getenv("SUPERVISOR_TOKEN"))
isAddon=True
Expand Down Expand Up @@ -378,4 +380,4 @@ def getInvDeets(HOST):
logger.critical("Reboot requested... rebooting now")
os.remove("/app/.reboot")
exit()
sleep (60)
sleep (60)

0 comments on commit d78671f

Please sign in to comment.