mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 06:36:30 +00:00
Bump attrs from 19.1.0 to 19.3.0 (#1329)
* Bump attrs from 19.1.0 to 19.3.0 Bumps [attrs](https://github.com/python-attrs/attrs) from 19.1.0 to 19.3.0. - [Release notes](https://github.com/python-attrs/attrs/releases) - [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst) - [Commits](https://github.com/python-attrs/attrs/compare/19.1.0...19.3.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix attr Deprecations
This commit is contained in:
parent
b4497d231b
commit
3574df1385
@ -6,7 +6,7 @@
|
|||||||
"appPort": "9123:8123",
|
"appPort": "9123:8123",
|
||||||
"runArgs": [
|
"runArgs": [
|
||||||
"-e",
|
"-e",
|
||||||
"GIT_EDITOR=\"code --wait\"",
|
"GIT_EDITOR=code --wait",
|
||||||
"--privileged"
|
"--privileged"
|
||||||
],
|
],
|
||||||
"extensions": [
|
"extensions": [
|
||||||
|
@ -31,8 +31,8 @@ class Message:
|
|||||||
|
|
||||||
addon: str = attr.ib()
|
addon: str = attr.ib()
|
||||||
service: str = attr.ib()
|
service: str = attr.ib()
|
||||||
config: Dict[str, Any] = attr.ib(cmp=False)
|
config: Dict[str, Any] = attr.ib(eq=False)
|
||||||
uuid: UUID = attr.ib(factory=lambda: uuid4().hex, cmp=False)
|
uuid: UUID = attr.ib(factory=lambda: uuid4().hex, eq=False)
|
||||||
|
|
||||||
|
|
||||||
class Discovery(CoreSysAttributes, JsonConfig):
|
class Discovery(CoreSysAttributes, JsonConfig):
|
||||||
|
@ -11,8 +11,13 @@ from ..coresys import CoreSysAttributes
|
|||||||
|
|
||||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
|
||||||
DefaultConfig = attr.make_class("DefaultConfig", ["input", "output"])
|
@attr.s()
|
||||||
|
class DefaultConfig:
|
||||||
|
"""Default config input/output ALSA channel."""
|
||||||
|
|
||||||
|
input: str = attr.ib()
|
||||||
|
output: str = attr.ib()
|
||||||
|
|
||||||
|
|
||||||
AUDIODB_JSON: Path = Path(__file__).parents[1].joinpath("data/audiodb.json")
|
AUDIODB_JSON: Path = Path(__file__).parents[1].joinpath("data/audiodb.json")
|
||||||
|
@ -91,9 +91,9 @@ class ServiceManager(CoreSysAttributes):
|
|||||||
class ServiceInfo:
|
class ServiceInfo:
|
||||||
"""Represent a single Service."""
|
"""Represent a single Service."""
|
||||||
|
|
||||||
name = attr.ib(type=str)
|
name: str = attr.ib()
|
||||||
description = attr.ib(type=str)
|
description: str = attr.ib()
|
||||||
state = attr.ib(type=str)
|
state: str = attr.ib()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def read_from(unit):
|
def read_from(unit):
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
aiohttp==3.6.2
|
aiohttp==3.6.2
|
||||||
async_timeout==3.0.1
|
async_timeout==3.0.1
|
||||||
attrs==19.1.0
|
attrs==19.3.0
|
||||||
cchardet==2.1.4
|
cchardet==2.1.4
|
||||||
colorlog==4.0.2
|
colorlog==4.0.2
|
||||||
cpe==1.2.1
|
cpe==1.2.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user