mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Make compatible with python 3 (#281)
* Make compatible with python 3 * Update travis * Env * Fix typo * Fix install correct platformio * Lint * Fix build flags * Lint * Upgrade pylint * Lint
This commit is contained in:
		| @@ -176,7 +176,7 @@ class WizardRequestHandler(BaseHandler): | ||||
|         if not self.is_authenticated(): | ||||
|             self.redirect('/login') | ||||
|             return | ||||
|         kwargs = {k: ''.join(v) for k, v in self.request.arguments.iteritems()} | ||||
|         kwargs = {k: ''.join(v) for k, v in self.request.arguments.items()} | ||||
|         destination = os.path.join(CONFIG_DIR, kwargs['name'] + '.yaml') | ||||
|         wizard.wizard_write(path=destination, **kwargs) | ||||
|         self.redirect('/?begin=True') | ||||
| @@ -436,7 +436,7 @@ class LoginHandler(BaseHandler): | ||||
|                 self.redirect('/') | ||||
|                 return | ||||
|         except Exception as err:  # pylint: disable=broad-except | ||||
|             _LOGGER.warn("Error during Hass.io auth request: %s", err) | ||||
|             _LOGGER.warning("Error during Hass.io auth request: %s", err) | ||||
|             self.set_status(500) | ||||
|             self.render_hassio_login(error="Internal server error") | ||||
|             return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user