diff --git a/tinkerforge_async/_version.py b/tinkerforge_async/_version.py index a535b31..f95db68 100644 --- a/tinkerforge_async/_version.py +++ b/tinkerforge_async/_version.py @@ -1,2 +1,2 @@ # pylint: disable=missing-module-docstring -__version__ = "1.5.1" +__version__ = "1.5.2" diff --git a/tinkerforge_async/bricklet_thermocouple_v2.py b/tinkerforge_async/bricklet_thermocouple_v2.py index 24b8012..464eebf 100644 --- a/tinkerforge_async/bricklet_thermocouple_v2.py +++ b/tinkerforge_async/bricklet_thermocouple_v2.py @@ -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: