fix wol
This commit is contained in:
		@@ -29,18 +29,13 @@ class WOL(object):
 | 
			
		||||
    def command(self, data):
 | 
			
		||||
    ##-----------------------------------------------------------------------------------##
 | 
			
		||||
        for device in data:
 | 
			
		||||
            print(device)
 | 
			
		||||
            print(data)
 | 
			
		||||
            print(self.devices)
 | 
			
		||||
            if device in self.devices:
 | 
			
		||||
                self.wakeDevice(self.devices[device])
 | 
			
		||||
                print(device)
 | 
			
		||||
                print(self.devices[device])
 | 
			
		||||
 | 
			
		||||
    ##-----------------------------------------------------------------------------------##
 | 
			
		||||
    def wakeDevice(self, device):
 | 
			
		||||
    ##-----------------------------------------------------------------------------------##
 | 
			
		||||
        print("Waking up Device: " + device + " mac: " + self.devices[device])
 | 
			
		||||
        print("Waking up Device: " + device + " mac: " + str(self.devices[device]))
 | 
			
		||||
        wol.send_magic_packet(self.devices[device])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user