1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 07:08:20 +00:00

simplified integration lookup

This commit is contained in:
gitolicious 2019-05-26 10:45:24 +00:00
parent 45141c8a9b
commit 3969473ee8

View File

@ -596,10 +596,7 @@ class EsphomeCore(object):
@property @property
def web_server_enabled(self): def web_server_enabled(self):
try: return CONF_WEB_SERVER in self.loaded_integrations
return self.config[CONF_WEB_SERVER] is not None
except KeyError:
return False
def add_job(self, func, *args, **kwargs): def add_job(self, func, *args, **kwargs):
coro = coroutine(func) coro = coroutine(func)