Unneeded validation removed

This commit is contained in:
Teagan M. Glenn 2016-08-18 10:32:19 -06:00
parent 2b8e2a3d36
commit 0490fe832a

View File

@ -66,10 +66,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
config.get(CONF_PWS_ID, None))
sensors = []
for variable in config['monitored_conditions']:
if variable in SENSOR_TYPES:
sensors.append(WUndergroundSensor(rest, variable))
else:
_LOGGER.error('Wunderground sensor: "%s" does not exist', variable)
sensors.append(WUndergroundSensor(rest, variable))
try:
rest.update()