Skip to content

Commit 6fd1468

Browse files
committed
Fix startup issues when running both UI and YAML
1 parent aaf92cc commit 6fd1468

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

custom_components/hacs/__init__.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ async def async_setup_entry(hass, config_entry):
5555
"""Set up this integration using UI."""
5656
hacs = get_hacs()
5757
conf = hass.data.get(DOMAIN)
58+
if conf is not None:
59+
return False
5860
if config_entry.source == config_entries.SOURCE_IMPORT:
59-
if conf is None:
60-
hass.async_create_task(
61-
hass.config_entries.async_remove(config_entry.entry_id)
62-
)
61+
hass.async_create_task(hass.config_entries.async_remove(config_entry.entry_id))
6362
return False
6463
hacs.hass = hass
6564
hacs.session = async_create_clientsession(hass)

custom_components/hacs/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"aiofiles==0.5.0",
1515
"aiogithubapi==1.0.4",
1616
"backoff==1.10.0",
17-
"hacs_frontend==20200520174008",
17+
"hacs_frontend==20200521162326",
1818
"integrationhelper==0.2.2",
1919
"semantic_version==2.8.5",
2020
"queueman==0.5"

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ aiogithubapi==1.0.4
33
aiohttp>=3.6.1,<4.0
44
attrs==19.3.0
55
backoff==1.10.0
6-
hacs_frontend==20200520174008
6+
hacs_frontend==20200521162326
77
integrationhelper==0.2.2
88
PyGithub==1.51
99
pytest-asyncio==0.12.0

0 commit comments

Comments
 (0)