Explicitly convert to type to string

This commit is contained in:
Matthias 2020-09-19 20:38:42 +02:00
parent 2554dc48e4
commit a31de431ed
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class Telegram(RPC):
""" Send a message to telegram channel """
noti = self._config['telegram'].get('notification_settings', {}
).get(msg['type'], 'on')
).get(str(msg['type']), 'on')
if noti == 'off':
logger.info(f"Notification '{msg['type']}' not sent.")
# Notification disabled