mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Warn about tornado. Fixes #24
This commit is contained in:
		| @@ -7,6 +7,8 @@ import os | ||||
| import random | ||||
| import subprocess | ||||
|  | ||||
| _LOGGER = logging.getLogger(__name__) | ||||
|  | ||||
| try: | ||||
|     import tornado | ||||
|     import tornado.gen | ||||
| @@ -17,15 +19,16 @@ try: | ||||
|     import tornado.websocket | ||||
|     import tornado.concurrent | ||||
| except ImportError as err: | ||||
|     pass | ||||
|     _LOGGER.error("Attempted to load dashboard, but tornado is not installed! " | ||||
|                   "Please run \"pip2 install tornado esptool\" in your terminal.") | ||||
|  | ||||
| from esphomeyaml import const, core, __main__ | ||||
| from esphomeyaml.__main__ import get_serial_ports, get_base_path, get_name | ||||
| from esphomeyaml.helpers import quote | ||||
|  | ||||
| _LOGGER = logging.getLogger(__name__) | ||||
| CONFIG_DIR = '' | ||||
|  | ||||
|  | ||||
| # pylint: disable=abstract-method, arguments-differ | ||||
| class EsphomeyamlCommandWebSocket(tornado.websocket.WebSocketHandler): | ||||
|     def __init__(self, application, request, **kwargs): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user