def enable_calibration_overhaul(): return advs.get_setting_with_env_overload('enableTipLengthCalibration')
def calibrate_to_bottom(): return advs.get_setting_with_env_overload('calibrateToBottom')
def enable_door_safety_switch(): return advs.get_setting_with_env_overload('enableDoorSafetySwitch')
def short_fixed_trash(): return advs.get_setting_with_env_overload('shortFixedTrash')
def use_protocol_api_v2(): return not advs.get_setting_with_env_overload('useLegacyInternals')
def use_old_aspiration_functions(): return advs.get_setting_with_env_overload('useOldAspirationFunctions')
def dots_deck_type(): return advs.get_setting_with_env_overload('deckCalibrationDots')
def disable_home_on_boot(): return advs.get_setting_with_env_overload('disableHomeOnBoot')
def test_get_setting_with_env_overload(mock_read_settings_file, mock_settings_values): with patch("os.environ", new={}): v = advanced_settings.get_setting_with_env_overload("useProtocolApi2") assert v is mock_settings_values['useProtocolApi2']
def _should_show(setting_dict): if not setting_dict['show_if']: return True return advs.get_setting_with_env_overload(setting_dict['show_if'][0])\ == setting_dict['show_if'][1]
def enable_http_protocol_sessions(): return advs.get_setting_with_env_overload('enableHttpProtocolSessions')
def enable_back_compat(): return advs.get_setting_with_env_overload('enableApi1BackCompat')
def use_protocol_api_v2(): return advs.get_setting_with_env_overload('useProtocolApi2')
def use_fast_api() -> bool: return advs.get_setting_with_env_overload('useFastApi')
def use_fast_api() -> bool: return not advs.get_setting_with_env_overload('useV1HttpApi')