Update HACS
This commit is contained in:
@@ -23,13 +23,13 @@ from homeassistant.helpers.start import async_at_start
|
||||
from homeassistant.loader import async_get_integration
|
||||
import voluptuous as vol
|
||||
|
||||
from custom_components.hacs.frontend import async_register_frontend
|
||||
|
||||
from .base import HacsBase
|
||||
from .const import DOMAIN, MINIMUM_HA_VERSION, STARTUP
|
||||
from .enums import ConfigurationType, HacsDisabledReason, HacsStage, LovelaceMode
|
||||
from .frontend import async_register_frontend
|
||||
from .utils.configuration_schema import hacs_config_combined
|
||||
from .utils.data import HacsData
|
||||
from .utils.platform_setup import async_setup_entity_platforms
|
||||
from .utils.queue_manager import QueueManager
|
||||
from .utils.version import version_left_higher_or_equal_then_right
|
||||
from .websocket import async_register_websocket_commands
|
||||
@@ -169,14 +169,14 @@ async def async_initialize_integration(
|
||||
hacs.log.info("Update entities are only supported when using UI configuration")
|
||||
|
||||
else:
|
||||
if hacs.configuration.experimental:
|
||||
hass.config_entries.async_setup_platforms(
|
||||
hacs.configuration.config_entry, [Platform.SENSOR, Platform.UPDATE]
|
||||
)
|
||||
else:
|
||||
hass.config_entries.async_setup_platforms(
|
||||
hacs.configuration.config_entry, [Platform.SENSOR]
|
||||
)
|
||||
await async_setup_entity_platforms(
|
||||
hacs,
|
||||
hass,
|
||||
config_entry,
|
||||
[Platform.SENSOR, Platform.UPDATE]
|
||||
if hacs.configuration.experimental
|
||||
else [Platform.SENSOR],
|
||||
)
|
||||
|
||||
hacs.set_stage(HacsStage.SETUP)
|
||||
if hacs.system.disabled:
|
||||
|
||||
Reference in New Issue
Block a user