|  |  | @ -56,7 +56,6 @@ from homeassistant.components.light import ( | 
			
		
	
		
		
			
				
					
					|  |  |  |     ATTR_BRIGHTNESS, |  |  |  |     ATTR_BRIGHTNESS, | 
			
		
	
		
		
			
				
					
					|  |  |  |     ATTR_COLOR_TEMP_KELVIN, |  |  |  |     ATTR_COLOR_TEMP_KELVIN, | 
			
		
	
		
		
			
				
					
					|  |  |  |     ATTR_RGB_COLOR, |  |  |  |     ATTR_RGB_COLOR, | 
			
		
	
		
		
			
				
					
					|  |  |  |     ATTR_HS_COLOR, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     ATTR_EFFECT, |  |  |  |     ATTR_EFFECT, | 
			
		
	
		
		
			
				
					
					|  |  |  |     LightEntity, |  |  |  |     LightEntity, | 
			
		
	
		
		
			
				
					
					|  |  |  |     LightEntityFeature, |  |  |  |     LightEntityFeature, | 
			
		
	
	
		
		
			
				
					|  |  | @ -64,8 +63,7 @@ from homeassistant.components.light import ( | 
			
		
	
		
		
			
				
					
					|  |  |  | ) |  |  |  | ) | 
			
		
	
		
		
			
				
					
					|  |  |  | from homeassistant.util.color import ( |  |  |  | from homeassistant.util.color import ( | 
			
		
	
		
		
			
				
					
					|  |  |  |     value_to_brightness, |  |  |  |     value_to_brightness, | 
			
		
	
		
		
			
				
					
					|  |  |  |     brightness_to_value, |  |  |  |     brightness_to_value | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     color_hs_to_RGB |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | ) |  |  |  | ) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | from .miot.miot_spec import MIoTSpecProperty |  |  |  | from .miot.miot_spec import MIoTSpecProperty | 
			
		
	
	
		
		
			
				
					|  |  | @ -96,6 +94,7 @@ async def async_setup_entry( | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | class Light(MIoTServiceEntity, LightEntity): |  |  |  | class Light(MIoTServiceEntity, LightEntity): | 
			
		
	
		
		
			
				
					
					|  |  |  |     """Light entities for Xiaomi Home.""" |  |  |  |     """Light entities for Xiaomi Home.""" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     # pylint: disable=unused-argument | 
			
		
	
		
		
			
				
					
					|  |  |  |     _prop_on: Optional[MIoTSpecProperty] |  |  |  |     _prop_on: Optional[MIoTSpecProperty] | 
			
		
	
		
		
			
				
					
					|  |  |  |     _prop_brightness: Optional[MIoTSpecProperty] |  |  |  |     _prop_brightness: Optional[MIoTSpecProperty] | 
			
		
	
		
		
			
				
					
					|  |  |  |     _prop_color_temp: Optional[MIoTSpecProperty] |  |  |  |     _prop_color_temp: Optional[MIoTSpecProperty] | 
			
		
	
	
		
		
			
				
					|  |  | 
 |