Hi every one,
I try to install and use rpi_gpio_pwm on my home assistant wich is on a raspberry Pi 4 on a container.
This what I see on logs
Logger: homeassistant.components.light
Source: custom_components/rpi_gpio_pwm/light.py:71
Integration: Lumière (documentation, issues)
First occurred: 14:54:12 (1 occurrences)
Last logged: 14:54:12
Error while setting up rpi_gpio_pwm platform for light
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/data.py", line 1194, in from_revision
) = PI_REVISIONS[revision]
KeyError: 1684095520
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/rpi_gpio_pwm/light.py", line 71, in setup_platform
led = PwmSimpleLed(PWMLED(pin, **opt_args), led_conf[CONF_NAME])
File "/usr/local/lib/python3.10/site-packages/gpiozero/devices.py", line 108, in __call__
self = super(GPIOMeta, cls).__call__(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/gpiozero/output_devices.py", line 403, in __init__
super(PWMOutputDevice, self).__init__(
File "/usr/local/lib/python3.10/site-packages/gpiozero/output_devices.py", line 83, in __init__
super(OutputDevice, self).__init__(pin, pin_factory=pin_factory)
File "/usr/local/lib/python3.10/site-packages/gpiozero/mixins.py", line 85, in __init__
super(SourceMixin, self).__init__(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/gpiozero/devices.py", line 548, in __init__
self.pin_factory.reserve_pins(self, pin)
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/pi.py", line 91, in reserve_pins
super(PiFactory, self).reserve_pins(
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/pi.py", line 92, in <genexpr>
requester, *(self.pi_info.to_gpio(pin) for pin in pins))
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/__init__.py", line 169, in <lambda>
lambda self: self._get_pi_info(),
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/pi.py", line 116, in _get_pi_info
self._info = PiBoardInfo.from_revision(self._get_revision())
File "/usr/local/lib/python3.10/site-packages/gpiozero/pins/data.py", line 1198, in from_revision
raise PinUnknownPi('unknown old-style revision "%x"' % revision)
gpiozero.exc.PinUnknownPi: unknown old-style revision "64614220"
Some help please ?