mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Some fixes for yr config validation. (#1809)
The setup_platform function is trying to get CONF_LATITUDE and CONF_LONGITUDE, but the validation schema was not accepting these. Also moved CONF_MONITORED_CONDITIONS and CONF_ELEVATION to homeassistant.const because they are used in other places.
This commit is contained in:
committed by
Paulus Schoutsen
parent
241735c924
commit
656e187729
@@ -16,6 +16,7 @@ DEVICE_DEFAULT_NAME = "Unnamed Device"
|
||||
CONF_ICON = "icon"
|
||||
CONF_LATITUDE = "latitude"
|
||||
CONF_LONGITUDE = "longitude"
|
||||
CONF_ELEVATION = "elevation"
|
||||
CONF_TEMPERATURE_UNIT = "temperature_unit"
|
||||
CONF_NAME = "name"
|
||||
CONF_TIME_ZONE = "time_zone"
|
||||
@@ -30,6 +31,7 @@ CONF_PASSWORD = "password"
|
||||
CONF_API_KEY = "api_key"
|
||||
CONF_ACCESS_TOKEN = "access_token"
|
||||
CONF_FILENAME = "filename"
|
||||
CONF_MONITORED_CONDITIONS = 'monitored_conditions'
|
||||
CONF_OPTIMISTIC = 'optimistic'
|
||||
CONF_SCAN_INTERVAL = "scan_interval"
|
||||
CONF_VALUE_TEMPLATE = "value_template"
|
||||
|
||||
Reference in New Issue
Block a user