Update buienradar.py (#21351)
Fixing warning about unsupported config key in Buienradar sensor, whilst it was actually supported (but not validated)
This commit is contained in:
parent
48e44f4b5b
commit
954bd4e13b
1 changed files with 2 additions and 1 deletions
|
@ -137,6 +137,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
'Latitude and longitude must exist together'): cv.longitude,
|
'Latitude and longitude must exist together'): cv.longitude,
|
||||||
vol.Optional(CONF_TIMEFRAME, default=60):
|
vol.Optional(CONF_TIMEFRAME, default=60):
|
||||||
vol.All(vol.Coerce(int), vol.Range(min=5, max=120)),
|
vol.All(vol.Coerce(int), vol.Range(min=5, max=120)),
|
||||||
|
vol.Optional(CONF_NAME, default='br'): cv.string,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -161,7 +162,7 @@ async def async_setup_platform(hass, config, async_add_entities,
|
||||||
|
|
||||||
dev = []
|
dev = []
|
||||||
for sensor_type in config[CONF_MONITORED_CONDITIONS]:
|
for sensor_type in config[CONF_MONITORED_CONDITIONS]:
|
||||||
dev.append(BrSensor(sensor_type, config.get(CONF_NAME, 'br'),
|
dev.append(BrSensor(sensor_type, config.get(CONF_NAME),
|
||||||
coordinates))
|
coordinates))
|
||||||
async_add_entities(dev)
|
async_add_entities(dev)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue