diff --git a/esphome/core.py b/esphome/core.py index 6e4f4bccd1..ef0841881b 100644 --- a/esphome/core.py +++ b/esphome/core.py @@ -599,7 +599,7 @@ class EsphomeCore(object): try: return self.config[CONF_WEB_SERVER] is not None except KeyError: - False + return False def add_job(self, func, *args, **kwargs): coro = coroutine(func) diff --git a/esphome/dashboard/dashboard.py b/esphome/dashboard/dashboard.py index 2ff4384fd8..567850049a 100644 --- a/esphome/dashboard/dashboard.py +++ b/esphome/dashboard/dashboard.py @@ -436,6 +436,7 @@ class DashboardEntry(object): return False return self.storage.web_server_enabled + class MainRequestHandler(BaseHandler): @authenticated def get(self):