Skip to content

Commit

Permalink
Hotfix for crash when calling BrickletThermocoupleV2.set_callback_con…
Browse files Browse the repository at this point in the history
…figuration()

Bump version to 1.5.2
  • Loading branch information
PatrickBaus committed Jun 20, 2024
1 parent ca1a8c3 commit aae49eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tinkerforge_async/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pylint: disable=missing-module-docstring
__version__ = "1.5.1"
__version__ = "1.5.2"
4 changes: 2 additions & 2 deletions tinkerforge_async/bricklet_thermocouple_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ async def set_callback_configuration( # pylint: disable=too-many-arguments
await self.set_temperature_callback_configuration(
period, value_has_to_change, option, minimum, maximum, response_expected
)

raise ValueError(f"Invalid sid: {sid}. sid must be in (0, ).")
else:
raise ValueError(f"Invalid sid: {sid}. sid must be in (0, ).")

async def get_callback_configuration(self, sid: int) -> AdvancedCallbackConfiguration:
if sid == 0:
Expand Down

0 comments on commit aae49eb

Please sign in to comment.