mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Config schema
This commit is contained in:
parent
333e3ba822
commit
b7809675eb
@ -51,6 +51,13 @@ SENSOR_TYPES = {
|
|||||||
'solarradiation': ['Solar Radiation', None]
|
'solarradiation': ['Solar Radiation', None]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PLATFORM_SCHEMA = vol.Schema({
|
||||||
|
vol.Required(CONF_PLATFORM): "wunderground",
|
||||||
|
vol.Required(CONF_API_KEY): vol.Coerce(str),
|
||||||
|
CONF_PWS_ID: vol.Coerce(str),
|
||||||
|
vol.Required(CONF_MONITORED_CONDITIONS, default=[]): ensure_list,
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Setup the Wunderground sensor."""
|
"""Setup the Wunderground sensor."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user