mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-04 06:32:07 +00:00 
			
		
		
		
	Use correct key for chjecking if on since should be added
This commit is contained in:
		@@ -173,7 +173,7 @@ class SmartDevice(Device):
 | 
			
		||||
 | 
			
		||||
        # We check for the key available, and not for the property truthiness,
 | 
			
		||||
        # as the value is falsy when the device is off.
 | 
			
		||||
        if "on_since" in self._info:
 | 
			
		||||
        if "on_time" in self._info:
 | 
			
		||||
            self.add_descriptor(
 | 
			
		||||
                Descriptor(
 | 
			
		||||
                    device=self,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user