mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-11-03 22:22:06 +00:00 
			
		
		
		
	Fix on_since for smartstrip sockets (#529)
This commit is contained in:
		@@ -360,7 +360,7 @@ class SmartStripPlug(SmartPlug):
 | 
			
		||||
        info = self._get_child_info()
 | 
			
		||||
        on_time = info["on_time"]
 | 
			
		||||
 | 
			
		||||
        return self.time - timedelta(seconds=on_time)
 | 
			
		||||
        return datetime.now().replace(microsecond=0) - timedelta(seconds=on_time)
 | 
			
		||||
 | 
			
		||||
    @property  # type: ignore
 | 
			
		||||
    @requires_update
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user