mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00:00 
			
		
		
		
	[ruff] Enable SIM rules and fix code simplification violations (#9872)
This commit is contained in:
		| @@ -55,9 +55,7 @@ CONFIG_SCHEMA = cv.All( | ||||
| async def to_code(config): | ||||
|     var = await fastled_base.new_fastled_light(config) | ||||
|  | ||||
|     rgb_order = cg.RawExpression( | ||||
|         config[CONF_RGB_ORDER] if CONF_RGB_ORDER in config else "RGB" | ||||
|     ) | ||||
|     rgb_order = cg.RawExpression(config.get(CONF_RGB_ORDER, "RGB")) | ||||
|     data_rate = None | ||||
|  | ||||
|     if CONF_DATA_RATE in config: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user