1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 14:48:18 +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
def web_server_enabled(self):
try:
return self.config[CONF_WEB_SERVER] is not None
except KeyError:
return False
return CONF_WEB_SERVER in self.loaded_integrations
def add_job(self, func, *args, **kwargs):
coro = coroutine(func)