diff --git a/hm_pyhelper/miner_param.py b/hm_pyhelper/miner_param.py index aab1928..95fc050 100644 --- a/hm_pyhelper/miner_param.py +++ b/hm_pyhelper/miner_param.py @@ -118,10 +118,10 @@ def get_gateway_mfr_command(sub_command: str, slot: int = 0) -> list: if gateway_mfr_version >= Version('0.2.0'): try: - if os.getenv('SWARM_KEY_URI'): + if os.getenv('SWARM_KEY_URI_OVERRIDE'): device_arg = [ '--device', - os.getenv('SWARM_KEY_URI') + os.getenv('SWARM_KEY_URI_OVERRIDE') ] else: device_arg = [