NMA fix
Thanks @Mochaka
This commit is contained in:
1 parent
db4159e51d
commit
6e2380f203
1 file changed
+7
-2
@@ -18,8 +18,13 @@ class NotifyMyAndroid(Notification):
|
|||||||
# hacky fix for the event type
|
# hacky fix for the event type
|
||||||
# as it seems to be part of the message now
|
# as it seems to be part of the message now
|
||||||
self.event = message.split(' ')[0]
|
self.event = message.split(' ')[0]
|
||||||
|
response = nma.push(
|
||||||
response = nma.push(self.default_title, self.event , message, self.conf('priority'), batch_mode = len(keys) > 1)
|
application = self.default_title,
|
||||||
|
event = self.event,
|
||||||
|
description = message,
|
||||||
|
priority = self.conf('priority'),
|
||||||
|
batch_mode = len(keys) > 1
|
||||||
|
)
|
||||||
|
|
||||||
for key in keys:
|
for key in keys:
|
||||||
if not response[str(key)]['code'] == u'200':
|
if not response[str(key)]['code'] == u'200':
|
||||||
|
|||||||
Reference in new issue
Block a user