Skip to content

Commit a9f317e

Browse files
Bump ruff from 0.14.14 to 0.15.1 (#1368)
* Bump ruff from 0.14.14 to 0.15.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.14 to 0.15.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.14.14...0.15.1) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Delint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
1 parent c8050f7 commit a9f317e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

requirements_lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ mypy==1.19.1
33
pylint==4.0.4
44
pylint-strict-informational==0.1
55
pre-commit==4.5.1
6-
ruff==0.14.14
6+
ruff==0.15.1

zwave_js_server/const/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
from dataclasses import dataclass, field
6-
from enum import Enum, IntEnum
6+
from enum import IntEnum, StrEnum
77
import logging
88
from typing import TypedDict
99

@@ -30,7 +30,7 @@
3030
VOLUME_OPTION = "volume"
3131

3232

33-
class CommandStatus(str, Enum):
33+
class CommandStatus(StrEnum):
3434
"""Status of a command sent to zwave-js-server."""
3535

3636
ACCEPTED = "accepted"
@@ -39,7 +39,7 @@ class CommandStatus(str, Enum):
3939

4040
# Multiple inheritance so that LogLevel will JSON serialize properly
4141
# Reference: https://stackoverflow.com/a/51976841
42-
class LogLevel(str, Enum):
42+
class LogLevel(StrEnum):
4343
"""Enum for log levels used by node-zwave-js."""
4444

4545
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/core/src/log/shared.ts#L12
@@ -212,7 +212,7 @@ class NodeStatus(IntEnum):
212212
ALIVE = 4
213213

214214

215-
class ConfigurationValueType(str, Enum):
215+
class ConfigurationValueType(StrEnum):
216216
"""Enum for configuration value types."""
217217

218218
BOOLEAN = "boolean"

zwave_js_server/const/command_class/lock.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from dataclasses import dataclass, field
10-
from enum import Enum, IntEnum
10+
from enum import IntEnum, StrEnum
1111
from typing import TypedDict
1212

1313
from .. import CommandClass
@@ -49,23 +49,23 @@ class OperationType(IntEnum):
4949
}
5050

5151

52-
class LatchStatus(str, Enum):
52+
class LatchStatus(StrEnum):
5353
"""Enum with all (known/used) Z-Wave latch statuses."""
5454

5555
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/cc/src/cc/DoorLockCC.ts#L854
5656
OPEN = "open"
5757
CLOSED = "closed"
5858

5959

60-
class BoltStatus(str, Enum):
60+
class BoltStatus(StrEnum):
6161
"""Enum with all (known/used) Z-Wave bolt statuses."""
6262

6363
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/cc/src/cc/DoorLockCC.ts#L854
6464
LOCKED = "locked"
6565
UNLOCKED = "unlocked"
6666

6767

68-
class DoorStatus(str, Enum):
68+
class DoorStatus(StrEnum):
6969
"""Enum with all (known/used) Z-Wave door statuses."""
7070

7171
# https://github.com/zwave-js/node-zwave-js/blob/master/packages/cc/src/cc/DoorLockCC.ts#L854

0 commit comments

Comments
 (0)