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:
parent
45141c8a9b
commit
3969473ee8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user