Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanXDong authored Jan 5, 2025
1 parent a65ef7b commit bea6c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ def main():
RETRY_TIMES_LIMIT = int(options.get("RETRY_TIMES_LIMIT", 5))
os.environ["HASS_URL"] = options.get("HASS_URL", "http://homeassistant.local:8123/")
os.environ["HASS_TOKEN"] = options.get("HASS_TOKEN", "")
os.environ["ENABLE_DATABASE_STORAGE"] = str(options.get("ENABLE_DATABASE_STORAGE", "false"))
os.environ["ENABLE_DATABASE_STORAGE"] = str(options.get("ENABLE_DATABASE_STORAGE", "false")).lower()
os.environ["IGNORE_USER_ID"] = options.get("IGNORE_USER_ID", "xxxxx,xxxxx")
os.environ["DB_NAME"] = options.get("DB_NAME", "homeassistant.db")
os.environ["RETRY_TIMES_LIMIT"] = str(options.get("RETRY_TIMES_LIMIT", 5))
os.environ["DRIVER_IMPLICITY_WAIT_TIME"] = str(options.get("DRIVER_IMPLICITY_WAIT_TIME", 60))
os.environ["LOGIN_EXPECTED_TIME"] = str(options.get("LOGIN_EXPECTED_TIME", 10))
os.environ["RETRY_WAIT_TIME_OFFSET_UNIT"] = str(options.get("RETRY_WAIT_TIME_OFFSET_UNIT", 10))
os.environ["DATA_RETENTION_DAYS"] = str(options.get("DATA_RETENTION_DAYS", 7))
os.environ["RECHARGE_NOTIFY"] = str(options.get("RECHARGE_NOTIFY", "false"))
os.environ["RECHARGE_NOTIFY"] = str(options.get("RECHARGE_NOTIFY", "false")).lower()
os.environ["BALANCE"] = str(options.get("BALANCE", 5.0))
os.environ["PUSHPLUS_TOKEN"] = options.get("PUSHPLUS_TOKEN", "")
except Exception as e:
Expand Down

0 comments on commit bea6c33

Please sign in to comment.