Move imports in ifttt component (#27792)
parent
b187ca93d0
commit
e54f5102aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue