From e955eccf80752d269dcd2031d71f7a9d9199201a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 28 Nov 2021 17:33:53 -0600 Subject: Allow `connection` to be any AbstractConnection --- CHANGELOG.rst | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'CHANGELOG.rst') diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6e7fdf6..96fdd08 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,15 @@ The format is based on `Keep a Changelog `_, and this project adheres to `Semantic Versioning `_. +Unreleased +------------------ + +**Fixed** + +- `lirc.Client` will throw a `TypeError` only if the passed `connection` + is not an instance of `AbstractConnection`. Previously, it would throw + a `TypeError` if `connection` was not an `LircdConnection`. + 2.0.0 - 2021-04-18 ------------------ @@ -16,13 +25,13 @@ adheres to `Semantic Versioning `_. an IR code twice by default. This is because the ``repeat_count`` keyword argument was set to 1 instead of 0, causing it to send the initial IR code and repeat it once. This now defaults to 0. - + On v1, this can be worked around by explicitly specifying the ``repeat_count`` to only send 1 IR signal by setting it to 0: - + .. code-block:: python - + import lirc - + client = lirc.Client() client.send_once('remote', 'key', repeat_count=0) @@ -30,14 +39,14 @@ adheres to `Semantic Versioning `_. ``/opt/run/var/run/lirc/lircd`` when it should have been ``/opt/local/var/run/lirc/lircd``. This is unlikely to have an impact since the previous default directory was incorrect. - + On v1 and on macOS, this can also be worked around by explicitly specifying the connection path rather than relying on the default. - + .. code-block:: python - + import lirc - + client = lirc.Client( connection=lirc.LircdConnection( address="/opt/local/var/run/lirc/lircd", -- cgit v1.2.3