mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Unneeded validation removed
This commit is contained in:
parent
2b8e2a3d36
commit
0490fe832a
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user