mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +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))
|
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…
x
Reference in New Issue
Block a user