little bug
This commit is contained in:
1 parent
afcf3eaac3
commit
0ed608abff
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user