Fixed an issue with the even setting

This commit is contained in:
rossdargan 2015-10-11 22:27:13 +01:00
commit 8c72dfc641

View file

@ -1317,11 +1317,11 @@ class IFTTT(object):
logger.info(u"Ifttt notification failed serverside.") logger.info(u"Ifttt notification failed serverside.")
return False return False
def test(self, apikey): def test(self, apikey, event):
self.enabled = True self.enabled = True
self.apikey = apikey self.apikey = apikey
self.event = event
self.notify('Main Screen Activate', 'Test Message') self.notify('Main Screen Activate', 'Test Message')
def return_config_options(self): def return_config_options(self):
@ -1332,7 +1332,7 @@ class IFTTT(object):
'input_type': 'text' 'input_type': 'text'
}, },
{'label': 'Ifttt event', {'label': 'Ifttt event',
'value': self.apikey, 'value': self.event,
'name': 'ifttt_event', 'name': 'ifttt_event',
'description': 'The Ifttt maker event to fire.', 'description': 'The Ifttt maker event to fire.',
'input_type': 'text' 'input_type': 'text'