little bug

pull/78/head
Malte Deiseroth 2015-04-07 21:10:16 +02:00
parent afcf3eaac3
commit 0ed608abff
1 changed files with 1 additions and 1 deletions

View File

@ -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: