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
|
from homeassistant.loader import async_get_integration
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from custom_components.hacs.frontend import async_register_frontend
|
|
||||||
|
|
||||||
from .base import HacsBase
|
from .base import HacsBase
|
||||||
from .const import DOMAIN, MINIMUM_HA_VERSION, STARTUP
|
from .const import DOMAIN, MINIMUM_HA_VERSION, STARTUP
|
||||||
from .enums import ConfigurationType, HacsDisabledReason, HacsStage, LovelaceMode
|
from .enums import ConfigurationType, HacsDisabledReason, HacsStage, LovelaceMode
|
||||||
|
from .frontend import async_register_frontend
|
||||||
from .utils.configuration_schema import hacs_config_combined
|
from .utils.configuration_schema import hacs_config_combined
|
||||||
from .utils.data import HacsData
|
from .utils.data import HacsData
|
||||||
|
from .utils.platform_setup import async_setup_entity_platforms
|
||||||
from .utils.queue_manager import QueueManager
|
from .utils.queue_manager import QueueManager
|
||||||
from .utils.version import version_left_higher_or_equal_then_right
|
from .utils.version import version_left_higher_or_equal_then_right
|
||||||
from .websocket import async_register_websocket_commands
|
from .websocket import async_register_websocket_commands
|
||||||
@@ -169,13 +169,13 @@ async def async_initialize_integration(
|
|||||||
hacs.log.info("Update entities are only supported when using UI configuration")
|
hacs.log.info("Update entities are only supported when using UI configuration")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if hacs.configuration.experimental:
|
await async_setup_entity_platforms(
|
||||||
hass.config_entries.async_setup_platforms(
|
hacs,
|
||||||
hacs.configuration.config_entry, [Platform.SENSOR, Platform.UPDATE]
|
hass,
|
||||||
)
|
config_entry,
|
||||||
else:
|
[Platform.SENSOR, Platform.UPDATE]
|
||||||
hass.config_entries.async_setup_platforms(
|
if hacs.configuration.experimental
|
||||||
hacs.configuration.config_entry, [Platform.SENSOR]
|
else [Platform.SENSOR],
|
||||||
)
|
)
|
||||||
|
|
||||||
hacs.set_stage(HacsStage.SETUP)
|
hacs.set_stage(HacsStage.SETUP)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -54,6 +54,7 @@ from .repositories import RERPOSITORY_CLASSES
|
|||||||
from .utils.decode import decode_content
|
from .utils.decode import decode_content
|
||||||
from .utils.json import json_loads
|
from .utils.json import json_loads
|
||||||
from .utils.logger import LOGGER
|
from .utils.logger import LOGGER
|
||||||
|
from .utils.platform_setup import async_setup_entity_platforms
|
||||||
from .utils.queue_manager import QueueManager
|
from .utils.queue_manager import QueueManager
|
||||||
from .utils.store import async_load_from_store, async_save_to_store
|
from .utils.store import async_load_from_store, async_save_to_store
|
||||||
|
|
||||||
@@ -730,7 +731,9 @@ class HacsBase:
|
|||||||
platforms=platforms,
|
platforms=platforms,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.hass.config_entries.async_setup_platforms(self.configuration.config_entry, platforms)
|
await async_setup_entity_platforms(
|
||||||
|
self, self.hass, self.configuration.config_entry, platforms
|
||||||
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_dispatch(self, signal: HacsDispatchEvent, data: dict | None = None) -> None:
|
def async_dispatch(self, signal: HacsDispatchEvent, data: dict | None = None) -> None:
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
new Function("import('/hacsfiles/frontend/main-a0d7432d.js')")();
|
new Function("import('/hacsfiles/frontend/main-7bc9a818.js')")();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
var el = document.createElement('script');
|
var el = document.createElement('script');
|
||||||
el.src = '/hacsfiles/frontend/main-a0d7432d.js';
|
el.src = '/hacsfiles/frontend/main-7bc9a818.js';
|
||||||
el.type = 'module';
|
el.type = 'module';
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(el);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"./src/main.ts": "main-a0d7432d.js"
|
"./src/main.ts": "main-7bc9a818.js"
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
VERSION="20220709114425"
|
VERSION="20220714083628"
|
||||||
@@ -18,5 +18,5 @@
|
|||||||
"requirements": [
|
"requirements": [
|
||||||
"aiogithubapi>=22.2.4"
|
"aiogithubapi>=22.2.4"
|
||||||
],
|
],
|
||||||
"version": "1.26.0"
|
"version": "1.26.2"
|
||||||
}
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -619,7 +619,10 @@ class HacsRepository:
|
|||||||
extractable = []
|
extractable = []
|
||||||
for path in zip_file.filelist:
|
for path in zip_file.filelist:
|
||||||
filename = "/".join(path.filename.split("/")[1:])
|
filename = "/".join(path.filename.split("/")[1:])
|
||||||
if filename.startswith(self.content.path.remote):
|
if (
|
||||||
|
filename.startswith(self.content.path.remote)
|
||||||
|
and filename != self.content.path.remote
|
||||||
|
):
|
||||||
path.filename = filename.replace(self.content.path.remote, "")
|
path.filename = filename.replace(self.content.path.remote, "")
|
||||||
extractable.append(path)
|
extractable.append(path)
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user