Add stage flag (#1460)

* Add stage flag

* Add filter

* Remove filter

* Fix lint
This commit is contained in:
Pascal Vizeli
2020-01-28 17:58:29 +01:00
committed by GitHub
parent 0a8b1c2797
commit f253c797af
10 changed files with 49 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
"""Constants file for Hass.io."""
from pathlib import Path
from enum import Enum
from ipaddress import ip_network
from pathlib import Path
HASSIO_VERSION = "197"
@@ -224,6 +225,7 @@ ATTR_VALUE = "value"
ATTR_SNAPSHOT_EXCLUDE = "snapshot_exclude"
ATTR_DOCUMENTATION = "documentation"
ATTR_ADVANCED = "advanced"
ATTR_STAGE = "stage"
PROVIDE_SERVICE = "provide"
NEED_SERVICE = "need"
@@ -264,10 +266,6 @@ ARCH_I386 = "i386"
ARCH_ALL = [ARCH_ARMHF, ARCH_ARMV7, ARCH_AARCH64, ARCH_AMD64, ARCH_I386]
CHANNEL_STABLE = "stable"
CHANNEL_BETA = "beta"
CHANNEL_DEV = "dev"
REPOSITORY_CORE = "core"
REPOSITORY_LOCAL = "local"
@@ -325,3 +323,19 @@ ROLE_ALL = [ROLE_DEFAULT, ROLE_HOMEASSISTANT, ROLE_BACKUP, ROLE_MANAGER, ROLE_AD
CHAN_ID = "chan_id"
CHAN_TYPE = "chan_type"
class AddonStages(str, Enum):
"""Stage types of add-on."""
STABLE = "stable"
EXPERIMENTAL = "experimental"
DEPRECATED = "deprecated"
class UpdateChannels(str, Enum):
"""Core supported update channels."""
STABLE = "stable"
BETA = "beta"
DEV = "dev"