diff --git a/system/athena/sunnylinkd.py b/system/athena/sunnylinkd.py index 2f19983198..529d1b2059 100755 --- a/system/athena/sunnylinkd.py +++ b/system/athena/sunnylinkd.py @@ -190,8 +190,7 @@ def main(exit_event: threading.Event = None): except Exception: cloudlog.exception("failed to set core affinity") - is_registered = params.get("SunnylinkDongleId", encoding='utf-8') not in (None, UNREGISTERED_SUNNYLINK_DONGLE_ID) - while params.get_bool("SunnylinkEnabled") and not is_registered: + while params.get_bool("SunnylinkEnabled") and not params.get("SunnylinkDongleId", encoding='utf-8') not in (None, UNREGISTERED_SUNNYLINK_DONGLE_ID): cloudlog.info("Waiting for sunnylink registration to complete") time.sleep(10)