mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
linter fixes
This commit is contained in:
parent
6aa89fe608
commit
45141c8a9b
@ -599,7 +599,7 @@ class EsphomeCore(object):
|
|||||||
try:
|
try:
|
||||||
return self.config[CONF_WEB_SERVER] is not None
|
return self.config[CONF_WEB_SERVER] is not None
|
||||||
except KeyError:
|
except KeyError:
|
||||||
False
|
return False
|
||||||
|
|
||||||
def add_job(self, func, *args, **kwargs):
|
def add_job(self, func, *args, **kwargs):
|
||||||
coro = coroutine(func)
|
coro = coroutine(func)
|
||||||
|
@ -436,6 +436,7 @@ class DashboardEntry(object):
|
|||||||
return False
|
return False
|
||||||
return self.storage.web_server_enabled
|
return self.storage.web_server_enabled
|
||||||
|
|
||||||
|
|
||||||
class MainRequestHandler(BaseHandler):
|
class MainRequestHandler(BaseHandler):
|
||||||
@authenticated
|
@authenticated
|
||||||
def get(self):
|
def get(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user