|  | @@ -65,7 +65,7 @@ class mul_path(Load):
 | 
											
												
													
														|  |  				if info['devices']:
 |  |  				if info['devices']:
 | 
											
												
													
														|  |  					devices = tuple(eval(info['devices']))
 |  |  					devices = tuple(eval(info['devices']))
 | 
											
												
													
														|  |  					for device in devices:
 |  |  					for device in devices:
 | 
											
												
													
														|  | -						Demeter.service('device').switch(device, value, id)
 |  | 
 | 
											
												
													
														|  | 
 |  | +						Demeter.service('device').switch(device, switch=value, mul=id)
 | 
											
												
													
														|  |  			self.out('yes', {'id':id})
 |  |  			self.out('yes', {'id':id})
 | 
											
												
													
														|  |  		else:
 |  |  		else:
 | 
											
												
													
														|  |  			self.out('no')
 |  |  			self.out('no')
 | 
											
										
											
												
													
														|  | @@ -659,7 +659,7 @@ class update_path(Load):
 | 
											
												
													
														|  |  		id = self.input('id')
 |  |  		id = self.input('id')
 | 
											
												
													
														|  |  		value = self.input('value')
 |  |  		value = self.input('value')
 | 
											
												
													
														|  |  		if id:
 |  |  		if id:
 | 
											
												
													
														|  | -			Demeter.service('device').switch(id, value)
 |  | 
 | 
											
												
													
														|  | 
 |  | +			Demeter.service('device').switch(id, switch=value)
 | 
											
												
													
														|  |  			
 |  |  			
 | 
											
												
													
														|  |  			self.out('yes', {'id':id})
 |  |  			self.out('yes', {'id':id})
 | 
											
												
													
														|  |  			"""
 |  |  			"""
 | 
											
										
											
												
													
														|  | @@ -682,7 +682,7 @@ class update_path(Load):
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	@tornado.gen.coroutine
 |  |  	@tornado.gen.coroutine
 | 
											
												
													
														|  |  	def switch(self, id, value):
 |  |  	def switch(self, id, value):
 | 
											
												
													
														|  | -		Demeter.service('device').switch(id, value)
 |  | 
 | 
											
												
													
														|  | 
 |  | +		Demeter.service('device').switch(id, switch=value)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  class get_path(Load):
 |  |  class get_path(Load):
 | 
											
												
													
														|  |  	@Web.auth
 |  |  	@Web.auth
 |