Skip to content

Commit

Permalink
Fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Jan 8, 2025
1 parent 480a805 commit 9c60ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/vantage/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async def async_turn_off(self, **kwargs: Any) -> None:
)


def scale_color_brightness(color: ColorT, brightness: int) -> ColorT:
def scale_color_brightness(color: ColorT, brightness: int | None) -> ColorT:
"""Scale the brightness of an RGB/RGBW color tuple."""
if brightness is None:
return color
Expand Down

0 comments on commit 9c60ff8

Please sign in to comment.