Support backwards-compatible sell setting

This commit is contained in:
Matthias 2021-05-27 13:00:05 +02:00
parent c5c323ca88
commit e0083bc58e

View File

@ -261,7 +261,7 @@ CONF_SCHEMA = {
'default': 'off' 'default': 'off'
}, },
'sell': { 'sell': {
'type': 'object', 'type': ['string', 'object'],
'additionalProperties': { 'additionalProperties': {
'type': 'string', 'type': 'string',
'enum': TELEGRAM_SETTING_OPTIONS 'enum': TELEGRAM_SETTING_OPTIONS