diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2021-11-28 17:33:53 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2021-11-28 17:33:53 -0600 |
| commit | e955eccf80752d269dcd2031d71f7a9d9199201a (patch) | |
| tree | 6932c9b554231c6f340a62ffec9b7bff00229c76 /CHANGELOG.rst | |
| parent | Update pre-commit hooks (diff) | |
| download | lirc-e955eccf80752d269dcd2031d71f7a9d9199201a.zip | |
Allow `connection` to be any AbstractConnection
Diffstat (limited to 'CHANGELOG.rst')
| -rw-r--r-- | CHANGELOG.rst | 25 |
1 files changed, 17 insertions, 8 deletions
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 <https://keepachangelog.com/en/1.0.0/>`_, and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_. +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 <https://semver.org/spec/v2.0.0.html>`_. 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 <https://semver.org/spec/v2.0.0.html>`_. ``/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", |