mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
Bump pyupgrade from 3.10.1 to 3.13.0 (#5428)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
9a087c0767
commit
53572dcb8a
3 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ repos:
|
||||||
- --branch=release
|
- --branch=release
|
||||||
- --branch=beta
|
- --branch=beta
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.10.1
|
rev: v3.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
|
|
|
@ -964,7 +964,7 @@ RC_SWITCH_PROTOCOL_SCHEMA = cv.Any(
|
||||||
|
|
||||||
|
|
||||||
def validate_rc_switch_code(value):
|
def validate_rc_switch_code(value):
|
||||||
if not isinstance(value, (str, str)):
|
if not isinstance(value, str):
|
||||||
raise cv.Invalid("All RCSwitch codes must be in quotes ('')")
|
raise cv.Invalid("All RCSwitch codes must be in quotes ('')")
|
||||||
for c in value:
|
for c in value:
|
||||||
if c not in ("0", "1"):
|
if c not in ("0", "1"):
|
||||||
|
@ -981,7 +981,7 @@ def validate_rc_switch_code(value):
|
||||||
|
|
||||||
|
|
||||||
def validate_rc_switch_raw_code(value):
|
def validate_rc_switch_raw_code(value):
|
||||||
if not isinstance(value, (str, str)):
|
if not isinstance(value, str):
|
||||||
raise cv.Invalid("All RCSwitch raw codes must be in quotes ('')")
|
raise cv.Invalid("All RCSwitch raw codes must be in quotes ('')")
|
||||||
for c in value:
|
for c in value:
|
||||||
if c not in ("0", "1", "x"):
|
if c not in ("0", "1", "x"):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
pylint==2.17.6
|
pylint==2.17.6
|
||||||
flake8==6.1.0 # also change in .pre-commit-config.yaml when updating
|
flake8==6.1.0 # also change in .pre-commit-config.yaml when updating
|
||||||
black==23.9.1 # also change in .pre-commit-config.yaml when updating
|
black==23.9.1 # also change in .pre-commit-config.yaml when updating
|
||||||
pyupgrade==3.10.1 # also change in .pre-commit-config.yaml when updating
|
pyupgrade==3.13.0 # also change in .pre-commit-config.yaml when updating
|
||||||
pre-commit
|
pre-commit
|
||||||
|
|
||||||
# Unit tests
|
# Unit tests
|
||||||
|
|
Loading…
Reference in a new issue