02-09-2024, 05:03 PM
Hi, since the last update i started to get this error:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rpi_gpio/binary_sensor.py", line 77, in setup_platform
RPiGPIOBinarySensor(
File "/config/custom_components/rpi_gpio/binary_sensor.py", line 132, in __init__
edge_detect(self._port, edge_detected, self._bouncetime)
File "/config/custom_components/rpi_gpio/__init__.py", line 59, in edge_detect
GPIO.add_event_detect(port, GPIO.BOTH, callback=event_callback, bouncetime=bounce)
RuntimeError: Conflicting edge detection already enabled for this GPIO channel
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rpi_gpio/binary_sensor.py", line 77, in setup_platform
RPiGPIOBinarySensor(
File "/config/custom_components/rpi_gpio/binary_sensor.py", line 132, in __init__
edge_detect(self._port, edge_detected, self._bouncetime)
File "/config/custom_components/rpi_gpio/__init__.py", line 59, in edge_detect
GPIO.add_event_detect(port, GPIO.BOTH, callback=event_callback, bouncetime=bounce)
RuntimeError: Conflicting edge detection already enabled for this GPIO channel