mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-08-24 07:03:32 +00:00
Streamline version handling (#2155)
* Streamline version handling * guard detached add-on * commit version * fix version * Update pipeline * use su-version * Handle core like before * Fix dev * Update supervisor/api/addons.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Cleanup * Fix format * fix import * fix yml issue * fix readme * Update supervisor/api/addons.py Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Update frontend * Address comments Co-authored-by: Joakim Sørensen <joasoe@gmail.com> Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
This commit is contained in:
@ -16,7 +16,6 @@ from .arch import CpuArch
|
||||
from .auth import Auth
|
||||
from .const import (
|
||||
ENV_HOMEASSISTANT_REPOSITORY,
|
||||
ENV_SUPERVISOR_DEV,
|
||||
ENV_SUPERVISOR_MACHINE,
|
||||
ENV_SUPERVISOR_NAME,
|
||||
ENV_SUPERVISOR_SHARE,
|
||||
@ -180,7 +179,7 @@ def initialize_system_data(coresys: CoreSys) -> None:
|
||||
coresys.config.modify_log_level()
|
||||
|
||||
# Check if ENV is in development mode
|
||||
if bool(os.environ.get(ENV_SUPERVISOR_DEV, 0)):
|
||||
if coresys.dev:
|
||||
_LOGGER.warning("Environment variables 'SUPERVISOR_DEV' is set")
|
||||
coresys.updater.channel = UpdateChannel.DEV
|
||||
coresys.config.logging = LogLevel.DEBUG
|
||||
|
Reference in New Issue
Block a user