From 2255da4e530b44f7e0b7d079e72491a7787f41f6 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 8 Nov 2022 17:07:42 +0000 Subject: [PATCH] minor ver bump 2.1.0 added to changelog --- CHANGELOG.md | 14 ++++++++++++-- pyproject.toml | 2 +- xair_api/meta.py | 2 ++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc08311..a539e37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,18 @@ Before any major/minor/patch bump all unit tests will be run to verify they pass ## [Unreleased] -- [x] delay now settable with keyword arg. -- [x] type checks removed, prefer duck typing +- [ ] + +## [2.1.0] - 2022-11-08 + +### Added + +- delay keyword argument +- bounds checks for vals passed to lin_set/log_set + +### Removed + +- type checks, prefer duck typing ## [2.0.0] - 2022-11-07 diff --git a/pyproject.toml b/pyproject.toml index 2d1e2d3..488424f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xair-api" -version = "2.0.2" +version = "2.1.0" description = "Remote control Behringer X-Air | Midas MR mixers through OSC" authors = ["onyx-and-iris "] license = "MIT" diff --git a/xair_api/meta.py b/xair_api/meta.py index 59b7fcd..6013ef0 100644 --- a/xair_api/meta.py +++ b/xair_api/meta.py @@ -64,6 +64,8 @@ def geq_prop(param): return round(lin_get(-15, 15, self.getter(param)[0]), 1) def fset(self, val): + if not -15 <= val <= 15: + raise XAirRemoteError("expected value in range -15.0 to 15.0") self.setter(param, lin_set(-15, 15, val)) return property(fget, fset)