mirror of
				https://github.com/python-kasa/python-kasa.git
				synced 2025-10-31 20:51:54 +00:00 
			
		
		
		
	Use repr() for enum values in Feature.__repr__
This commit is contained in:
		| @@ -295,6 +295,8 @@ class Feature: | ||||
|         if self.precision_hint is not None and isinstance(value, float): | ||||
|             value = round(value, self.precision_hint) | ||||
|  | ||||
|         if isinstance(value, Enum): | ||||
|             value = repr(value) | ||||
|         s = f"{self.name} ({self.id}): {value}" | ||||
|         if self.unit is not None: | ||||
|             s += f" {self.unit}" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Teemu Rytilahti
					Teemu Rytilahti