fix multiple PR issues
This commit is contained in:
1 parent
a39148dd38
commit
313cbda0aa
3 files changed
+25
-23
No files matched your search
@@ -22,7 +22,6 @@ def setup(hass, config):
|
||||
global NEST
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
print("nest config", config[DOMAIN])
|
||||
username = config[DOMAIN].get(CONF_USERNAME)
|
||||
password = config[DOMAIN].get(CONF_PASSWORD)
|
||||
|
||||
@@ -31,14 +30,7 @@ def setup(hass, config):
|
||||
CONF_USERNAME, CONF_PASSWORD)
|
||||
return
|
||||
|
||||
try:
|
||||
import nest
|
||||
except ImportError:
|
||||
logger.exception(
|
||||
"Error while importing dependency nest. "
|
||||
"Did you maybe not install the python-nest dependency?")
|
||||
|
||||
return
|
||||
import nest
|
||||
|
||||
NEST = nest.Nest(username, password)
|
||||
|
||||
|
||||
Reference in new issue
Block a user