mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
simplified integration lookup
This commit is contained in:
parent
45141c8a9b
commit
3969473ee8
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user