mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use string constant
This commit is contained in:
parent
db2d9ec854
commit
ec5e20f0d9
@ -70,7 +70,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
config.get(CONF_API_KEY),
|
config.get(CONF_API_KEY),
|
||||||
config.get(CONF_PWS_ID, None))
|
config.get(CONF_PWS_ID, None))
|
||||||
sensors = []
|
sensors = []
|
||||||
for variable in config['monitored_conditions']:
|
for variable in config[CONF_MONITORED_CONDITIONS]:
|
||||||
sensors.append(WUndergroundSensor(rest, variable))
|
sensors.append(WUndergroundSensor(rest, variable))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user