Unneeded validation removed
parent
2b8e2a3d36
commit
0490fe832a
|
@ -66,10 +66,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
config.get(CONF_PWS_ID, None))
|
config.get(CONF_PWS_ID, None))
|
||||||
sensors = []
|
sensors = []
|
||||||
for variable in config['monitored_conditions']:
|
for variable in config['monitored_conditions']:
|
||||||
if variable in SENSOR_TYPES:
|
sensors.append(WUndergroundSensor(rest, variable))
|
||||||
sensors.append(WUndergroundSensor(rest, variable))
|
|
||||||
else:
|
|
||||||
_LOGGER.error('Wunderground sensor: "%s" does not exist', variable)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
rest.update()
|
rest.update()
|
||||||
|
|
Loading…
Reference in New Issue