diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2021-04-18 18:25:59 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2021-04-18 18:25:59 -0500 |
| commit | bc1b3e4f2910aaab1ac45b92addca5a51db7c9d0 (patch) | |
| tree | a5a522902ffdea8c20f83a68371f380a30a86757 | |
| parent | Update readme (diff) | |
| download | lirc-bc1b3e4f2910aaab1ac45b92addca5a51db7c9d0.zip | |
Fix default Darwin connection path
| -rw-r--r-- | CHANGELOG.rst | 13 | ||||
| -rw-r--r-- | lirc/connection/default_connection.py | 2 | ||||
| -rw-r--r-- | tests/test_default_connection.py | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 87cf220..9c65627 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,10 +12,15 @@ Unreleased **Fixed** -- The ``Client``'s ``send_once`` method was sending an IR code twice by default. - This is because the ``repeat_count`` was set to 1 instead of 0, causing it to - send the initial IR code and repeat it once. This is now set to 0. This is a - breaking change, albiet minor and more of a fix. +- POTENTIAL BREAKING CHANGE: The ``Client``'s ``send_once`` method was sending + 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. + +- The ``Darwin`` connection to lircd was set to default to + ``/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. 1.0.1 - 2020-12-26 ------------------ diff --git a/lirc/connection/default_connection.py b/lirc/connection/default_connection.py index 0ac2a12..e9c7272 100644 --- a/lirc/connection/default_connection.py +++ b/lirc/connection/default_connection.py @@ -56,7 +56,7 @@ class DefaultConnection: return { "Linux": "/var/run/lirc/lircd", "Windows": ("localhost", 8765), - "Darwin": "/opt/run/var/run/lirc/lircd", + "Darwin": "/opt/local/var/run/lirc/lircd", }[self.__operating_system] except KeyError: raise UnsupportedOperatingSystemError( diff --git a/tests/test_default_connection.py b/tests/test_default_connection.py index 8488dd3..bbfb894 100644 --- a/tests/test_default_connection.py +++ b/tests/test_default_connection.py @@ -23,7 +23,7 @@ from lirc.exceptions import UnsupportedOperatingSystemError ( "Darwin", socket.socket(socket.AF_UNIX, socket.SOCK_STREAM), - "/opt/run/var/run/lirc/lircd", + "/opt/local/var/run/lirc/lircd", ), ], ) |