From 27d524893750278f62503b3f28299fd48d2fbc95 Mon Sep 17 00:00:00 2001 From: Todd Ingarfield Date: Mon, 19 Oct 2015 15:33:23 -0500 Subject: [PATCH] Fix configuration for multiple hosts and add example configuration.yaml section --- homeassistant/components/thermostat/radiotherm.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/thermostat/radiotherm.py b/homeassistant/components/thermostat/radiotherm.py index 3acd3ef8986..6cd886149be 100644 --- a/homeassistant/components/thermostat/radiotherm.py +++ b/homeassistant/components/thermostat/radiotherm.py @@ -2,6 +2,18 @@ homeassistant.components.thermostat.radiotherm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adds support for Radio Thermostat wifi-enabled home thermostats + +Config: + +Example: +thermostat: + platform: radiotherm + host: + - 192.168.99.137 + - 192.168.99.202 + +Configure two thermostats via the configuration.yaml + """ import logging import datetime @@ -22,7 +34,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): hosts = [] if CONF_HOST in config: - hosts = [config[CONF_HOST]] + hosts = config[CONF_HOST] else: hosts.append(radiotherm.discover.discover_address())