diff --git a/xfinity-usage/config.yaml b/xfinity-usage/config.yaml index 0dff3a7..d641349 100755 --- a/xfinity-usage/config.yaml +++ b/xfinity-usage/config.yaml @@ -45,5 +45,5 @@ schema: mqtt_username: str? mqtt_password: password? mqtt_raw_usage: bool? - profile_cleanup: bool? + #profile_cleanup: bool? debug_support: bool? diff --git a/xfinity-usage/run.sh b/xfinity-usage/run.sh index ddbb88f..e17b36c 100755 --- a/xfinity-usage/run.sh +++ b/xfinity-usage/run.sh @@ -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") diff --git a/xfinity-usage/xfinity_usage_addon.py b/xfinity-usage/xfinity_usage_addon.py index cac2571..16392f5 100644 --- a/xfinity-usage/xfinity_usage_addon.py +++ b/xfinity-usage/xfinity_usage_addon.py @@ -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: @@ -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