mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
little bug
This commit is contained in:
parent
afcf3eaac3
commit
0ed608abff
@ -29,7 +29,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
try:
|
||||
## only one name given
|
||||
if type(config['names']) == str:
|
||||
names = [names]
|
||||
names = config[names]
|
||||
|
||||
## map names and sensors in given order
|
||||
elif type(config['names']) == list:
|
||||
|
Loading…
x
Reference in New Issue
Block a user