mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Move imports in ifttt component (#27792)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pyfttt
|
||||||
import requests
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@@ -69,7 +70,6 @@ async def async_setup(hass, config):
|
|||||||
target_keys[target] = api_keys[target]
|
target_keys[target] = api_keys[target]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import pyfttt
|
|
||||||
|
|
||||||
for target, key in target_keys.items():
|
for target, key in target_keys.items():
|
||||||
res = pyfttt.send_event(key, event, value1, value2, value3)
|
res = pyfttt.send_event(key, event, value1, value2, value3)
|
||||||
|
Reference in New Issue
Block a user