Update deprecated notification settings

This commit is contained in:
Matthias 2022-04-04 19:17:11 +02:00
parent 129a7c632c
commit 5ecb695e50

View File

@ -82,6 +82,14 @@ def process_temporary_deprecated_settings(config: Dict[str, Any]) -> None:
None, 'ignore_roi_if_buy_signal')
process_deprecated_setting(config, 'ask_strategy', 'ignore_buying_expired_candle_after',
None, 'ignore_buying_expired_candle_after')
# New settings
if config.get('telegram'):
process_deprecated_setting(config['telegram'], 'notification_settings', 'sell',
'notification_settings', 'exit')
process_deprecated_setting(config['telegram'], 'notification_settings', 'sell_fill',
'notification_settings', 'exit_fill')
process_deprecated_setting(config['telegram'], 'notification_settings', 'sell_cancel',
'notification_settings', 'exit_cancel')
# Legacy way - having them in experimental ...
process_removed_setting(config, 'experimental', 'use_sell_signal',