quick app: check type in notify

This commit is contained in:
Goffi 2017-02-05 14:55:21 +01:00
commit 2455e35c28

View file

@ -636,6 +636,7 @@ class QuickApp(object):
@param cb_args(list, None): list of args for callback
@param widget(object, None): widget where the notification happened
"""
assert type_ in C.NOTIFY_ALL
notif_dict = self.profiles[profile].notifications
key = '' if entity is None else entity.bare
type_notifs = notif_dict.setdefault(key, {}).setdefault(type_, [])