Skip to content

Commit

Permalink
Error type raise changed, to enable in external lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
riokuu committed Jul 1, 2022
1 parent a22d32f commit c79ec52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blebox_uniapi/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ async def async_on(self, value: Any) -> None:
if not isinstance(value, int):
value = int(value, 16)
if not isinstance(value, type(self._off_value)):
raise BadOnValueError(
raise ValueError(
f"turn_on called with bad parameter ({value} is {type(value)}, compared to {self._off_value} which is "
f"{type(self._off_value)})"
)
Expand Down

0 comments on commit c79ec52

Please sign in to comment.