mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Remove sleeps. (#5)
* Remove sleeps. - the sleeps is not needed. * Make sleep depending on environment variable. - set QUICKWIZARD to true to disable sleeps. * Changed env-name and made it work without env. - It only worked when environment variable was defined. Now it works with variable unset, which should be the normal case. - Added ESPHOMEYAML_ as prefix so it's ESPHOMEYAML_QUICKWIZARD.
This commit is contained in:
		
				
					committed by
					
						 Otto Winter
						Otto Winter
					
				
			
			
				
	
			
			
			
						parent
						
							9e5548324b
						
					
				
				
					commit
					633d20d023
				
			| @@ -3,7 +3,6 @@ from __future__ import print_function | |||||||
| import codecs | import codecs | ||||||
| import os | import os | ||||||
| import unicodedata | import unicodedata | ||||||
| from time import sleep |  | ||||||
|  |  | ||||||
| import voluptuous as vol | import voluptuous as vol | ||||||
|  |  | ||||||
| @@ -70,6 +69,12 @@ logger: | |||||||
|  |  | ||||||
| """ | """ | ||||||
|  |  | ||||||
|  | if os.getenv('ESPHOMEYAML_QUICKWIZARD', False): | ||||||
|  |     def sleep(time): | ||||||
|  |         pass | ||||||
|  | else: | ||||||
|  |     from time import sleep | ||||||
|  |  | ||||||
|  |  | ||||||
| def print_step(step, big): | def print_step(step, big): | ||||||
|     print() |     print() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user