mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-01 15:09:29 +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:
@@ -6,7 +6,13 @@ from typing import Any, Awaitable, Dict
|
||||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
|
||||
from ..const import ATTR_BOARD, ATTR_BOOT, ATTR_VERSION, ATTR_VERSION_LATEST
|
||||
from ..const import (
|
||||
ATTR_BOARD,
|
||||
ATTR_BOOT,
|
||||
ATTR_UPDATE_AVAILABLE,
|
||||
ATTR_VERSION,
|
||||
ATTR_VERSION_LATEST,
|
||||
)
|
||||
from ..coresys import CoreSysAttributes
|
||||
from ..validate import version_tag
|
||||
from .utils import api_process, api_validate
|
||||
@@ -25,6 +31,7 @@ class APIOS(CoreSysAttributes):
|
||||
return {
|
||||
ATTR_VERSION: self.sys_hassos.version,
|
||||
ATTR_VERSION_LATEST: self.sys_hassos.latest_version,
|
||||
ATTR_UPDATE_AVAILABLE: self.sys_hassos.need_update,
|
||||
ATTR_BOARD: self.sys_hassos.board,
|
||||
ATTR_BOOT: self.sys_dbus.rauc.boot_slot,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user