mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Move imports in goalfeed component (#27995)
This commit is contained in:
parent
92ed89969c
commit
bf6a30d1bb
@ -1,11 +1,12 @@
|
|||||||
"""Component for the Goalfeed service."""
|
"""Component for the Goalfeed service."""
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
import pysher
|
||||||
import requests
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
# Version downgraded due to regression in library
|
# Version downgraded due to regression in library
|
||||||
# For details: https://github.com/nlsdfnbch/Pysher/issues/38
|
# For details: https://github.com/nlsdfnbch/Pysher/issues/38
|
||||||
@ -30,8 +31,6 @@ GOALFEED_APP_ID = "bfd4ed98c1ff22c04074"
|
|||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the Goalfeed component."""
|
"""Set up the Goalfeed component."""
|
||||||
import pysher
|
|
||||||
|
|
||||||
conf = config[DOMAIN]
|
conf = config[DOMAIN]
|
||||||
username = conf.get(CONF_USERNAME)
|
username = conf.get(CONF_USERNAME)
|
||||||
password = conf.get(CONF_PASSWORD)
|
password = conf.get(CONF_PASSWORD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user