Skip to content

Commit e3d81b7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 38460dc commit e3d81b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: custom_components/adaptive_lighting/color_and_brightness.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def lerp_color_hsv(
504504
# Convert back to RGB
505505
rgb = tuple(int(round(x * 255)) for x in colorsys.hsv_to_rgb(*hsv))
506506
assert all(0 <= x <= 255 for x in rgb), f"Invalid RGB color: {rgb}"
507-
return cast(tuple[int, int, int], rgb)
507+
return cast("tuple[int, int, int]", rgb)
508508

509509

510510
def lerp(x, x1, x2, y1, y2):

Diff for: webapp/color_and_brightness.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def lerp_color_hsv(
504504
# Convert back to RGB
505505
rgb = tuple(int(round(x * 255)) for x in colorsys.hsv_to_rgb(*hsv))
506506
assert all(0 <= x <= 255 for x in rgb), f"Invalid RGB color: {rgb}"
507-
return cast(tuple[int, int, int], rgb)
507+
return cast("tuple[int, int, int]", rgb)
508508

509509

510510
def lerp(x, x1, x2, y1, y2):

0 commit comments

Comments
 (0)