Skip to content

Commit

Permalink
chore(ci): pre-commit autoupdate (#237)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- astral-sh/ruff-pre-commit@v0.5.2...v0.5.4
-
commitizen-tools/commitizen@v3.27.0...v3.28.0
<!--pre-commit.ci end-->

Co-authored-by: Lucas Mindêllo de Andrade <lucas@mindello.com.br>
  • Loading branch information
pre-commit-ci[bot] and rokam authored Jul 23, 2024
1 parent efa78af commit faeac9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ repos:
- id: no-commit-to-branch
args: ["--branch", "main"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
rev: v0.5.4
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.27.0
rev: v3.28.0
hooks:
- id: commitizen
stages: [commit-msg]
Expand Down
3 changes: 1 addition & 2 deletions midealocal/devices/e2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def _normalize_old_protocol(self, value: str | bool | int) -> OldProtocol:
if return_value == OldProtocol.auto:
result = (
self.subtype <= E2SubType.T82
or self.subtype == E2SubType.T85
or self.subtype == E2SubType.T36353
or self.subtype in [E2SubType.T85, E2SubType.T36353],
)
return_value = OldProtocol.true if result else OldProtocol.false
if isinstance(value, bool | int):
Expand Down

0 comments on commit faeac9c

Please sign in to comment.