mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Fix repeat.count = 0 case (#5364)
* Only play first action if count is non-zero * Add test to yaml * Update test5.yaml
This commit is contained in:
		| @@ -563,6 +563,13 @@ script: | ||||
|           then: | ||||
|             - logger.log: looping! | ||||
|  | ||||
|   - id: zero_repeat_test | ||||
|     then: | ||||
|       - repeat: | ||||
|           count: !lambda "return 0;" | ||||
|           then: | ||||
|             - logger.log: shouldn't see mee! | ||||
|  | ||||
| switch: | ||||
|   - platform: modbus_controller | ||||
|     modbus_controller_id: modbus_controller_test | ||||
|   | ||||
		Reference in New Issue
	
	Block a user