Move imports in ifttt component (#27792)
This commit is contained in:
1 parent
b187ca93d0
commit
e54f5102aa
1 file changed
+1
-1
@@ -2,6 +2,7 @@
|
||||
import json
|
||||
import logging
|
||||
|
||||
import pyfttt
|
||||
import requests
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -69,7 +70,6 @@ async def async_setup(hass, config):
|
||||
target_keys[target] = api_keys[target]
|
||||
|
||||
try:
|
||||
import pyfttt
|
||||
|
||||
for target, key in target_keys.items():
|
||||
res = pyfttt.send_event(key, event, value1, value2, value3)
|
||||
|
||||
Reference in new issue
Block a user