mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix configuration for multiple hosts and add example configuration.yaml section
This commit is contained in:
parent
0a6424a81d
commit
27d5248937
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user