mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Update ruff to v0.0.260 (#90566)
This commit is contained in:
parent
b3887a633d
commit
b9f0701336
@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.256
|
rev: v0.0.260
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
|
@ -172,7 +172,7 @@ class MySensorsLightRGB(MySensorsLight):
|
|||||||
new_rgb: tuple[int, int, int] | None = kwargs.get(ATTR_RGB_COLOR)
|
new_rgb: tuple[int, int, int] | None = kwargs.get(ATTR_RGB_COLOR)
|
||||||
if new_rgb is None:
|
if new_rgb is None:
|
||||||
return
|
return
|
||||||
hex_color = "%02x%02x%02x" % new_rgb
|
hex_color = "{:02x}{:02x}{:02x}".format(*new_rgb)
|
||||||
self.gateway.set_child_value(
|
self.gateway.set_child_value(
|
||||||
self.node_id, self.child_id, self.value_type, hex_color, ack=1
|
self.node_id, self.child_id, self.value_type, hex_color, ack=1
|
||||||
)
|
)
|
||||||
@ -219,7 +219,7 @@ class MySensorsLightRGBW(MySensorsLightRGB):
|
|||||||
new_rgbw: tuple[int, int, int, int] | None = kwargs.get(ATTR_RGBW_COLOR)
|
new_rgbw: tuple[int, int, int, int] | None = kwargs.get(ATTR_RGBW_COLOR)
|
||||||
if new_rgbw is None:
|
if new_rgbw is None:
|
||||||
return
|
return
|
||||||
hex_color = "%02x%02x%02x%02x" % new_rgbw
|
hex_color = "{:02x}{:02x}{:02x}{:02x}".format(*new_rgbw)
|
||||||
self.gateway.set_child_value(
|
self.gateway.set_child_value(
|
||||||
self.node_id, self.child_id, self.value_type, hex_color, ack=1
|
self.node_id, self.child_id, self.value_type, hex_color, ack=1
|
||||||
)
|
)
|
||||||
|
@ -4,5 +4,5 @@ bandit==1.7.4
|
|||||||
black==23.1.0
|
black==23.1.0
|
||||||
codespell==2.2.2
|
codespell==2.2.2
|
||||||
isort==5.12.0
|
isort==5.12.0
|
||||||
ruff==0.0.256
|
ruff==0.0.260
|
||||||
yamllint==1.28.0
|
yamllint==1.28.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user