Netatmo thermostat (#3888)
* Added Netatmo-thermostat * Remove-CONF_DEVICES
This commit is contained in:
1 parent
76598bc4d2
commit
3b424b034a
2 files changed
+182
-3
No files matched your search
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Support for the Netatmo devices (Weather Station and Welcome camera).
|
||||
Support for the Netatmo devices.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/netatmo/
|
||||
@@ -51,13 +51,14 @@ def setup(hass, config):
|
||||
NETATMO_AUTH = lnetatmo.ClientAuth(
|
||||
config[DOMAIN][CONF_API_KEY], config[DOMAIN][CONF_SECRET_KEY],
|
||||
config[DOMAIN][CONF_USERNAME], config[DOMAIN][CONF_PASSWORD],
|
||||
'read_station read_camera access_camera')
|
||||
'read_station read_camera access_camera '
|
||||
'read_thermostat write_thermostat')
|
||||
except HTTPError:
|
||||
_LOGGER.error("Unable to connect to Netatmo API")
|
||||
return False
|
||||
|
||||
if config[DOMAIN][CONF_DISCOVERY]:
|
||||
for component in 'camera', 'sensor', 'binary_sensor':
|
||||
for component in 'camera', 'sensor', 'binary_sensor', 'climate':
|
||||
discovery.load_platform(hass, component, DOMAIN, {}, config)
|
||||
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user