mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Make only_named: 0 work
This commit is contained in:
parent
e277decd4c
commit
22c72060cf
@ -77,7 +77,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
try:
|
||||
sensor_name = config[ts_sensor.id]
|
||||
except KeyError:
|
||||
if 'only_named' in config:
|
||||
if util.convert(config.get('only_named'), bool, False):
|
||||
continue
|
||||
sensor_name = str(ts_sensor.id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user