Skip to content

Commit

Permalink
development/0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thor0215 committed Dec 13, 2024
1 parent 5febfa5 commit 1cefff6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xfinity-usage/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ schema:
mqtt_username: str?
mqtt_password: password?
mqtt_raw_usage: bool?
profile_cleanup: bool?
#profile_cleanup: bool?
debug_support: bool?
2 changes: 1 addition & 1 deletion xfinity-usage/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [ $BYPASS = "0" ]; then
[[ $(bashio::config "mqtt_host") != null ]] && export MQTT_HOST=$(bashio::config "mqtt_host")
[[ $(bashio::config "mqtt_port") != null ]] && export MQTT_PORT=$(bashio::config "mqtt_port")
[[ $(bashio::config "mqtt_raw_usage") != null ]] && export MQTT_RAW_USAGE=$(bashio::config "mqtt_raw_usage")
[[ $(bashio::config "profile_cleanup") != null ]] && export PROFILE_CLEANUP=$(bashio::config "profile_cleanup")
#[[ $(bashio::config "profile_cleanup") != null ]] && export PROFILE_CLEANUP=$(bashio::config "profile_cleanup")
[[ $(bashio::config "debug_support") != null ]] && export DEBUG_SUPPORT=$(bashio::config "debug_support")


Expand Down
7 changes: 4 additions & 3 deletions xfinity-usage/xfinity_usage_addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ async def start(self):
await self.page.screenshot(path=f"/config/{datetime.now().strftime('%Y-%m-%dT%H:%M:%S.%f')}-sannysoft.png", full_page=True)



async def done(self) -> None:
await self.goto_logout()
if len(self.pending_requests) > 0:
Expand Down Expand Up @@ -1350,8 +1349,10 @@ async def run(self) -> None:
"""
await self.start()
await self.debug_support()
await self.goto_logout(True)
await self.debug_support()

# Needed if using persistent profiles
#await self.goto_logout(True)
#await self.debug_support()
await self.get_authenticated()

# If we do not have the plan and usage data, success and lets process it
Expand Down

0 comments on commit 1cefff6

Please sign in to comment.