8000 rpi_gpio_pwm error after upgrade to 0.117.1 · Issue #42650 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rpi_gpio_pwm error after upgrade to 0.117.1 #42650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pablomenino opened this issue Oct 30, 2020 · 2 comments · Fixed by #42607
Closed

rpi_gpio_pwm error after upgrade to 0.117.1 #42650

pablomenino opened this issue Oct 30, 2020 · 2 comments · Fixed by #42607

Comments

@pablomenino
Copy link

The problem

Error on rpi_gpio_pwm integration after upgrade to 0.117.1

Environment

  • Home Assistant Core release with the issue: 0.117.1
  • Last working Home Assistant Core release (if known): 0.116.4
  • Operating environment (OS/Container/Supervised/Core): Docker
  • Integration causing this issue: Upgrade
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/rpi_gpio_pwm/

Problem-relevant configuration.yaml

light:
  - platform: rpi_gpio_pwm
    leds:
      - name: cpu_led
        driver: gpio
        pins: [27, 17, 22] # [R, G, B]
        type: rgb
        host: 10.0.0.241

  - platform: rpi_gpio_pwm
    leds:
      - name: pump_led
        driver: gpio
        pins: [8, 25, 7] # [R, G, B]
        type: rgb
        host: 10.0.0.241

Traceback/Error logs

Logger: homeassistant.bootstrap
Source: components/rpi_gpio_pwm/light.py:6
First occurred: 15:00:15 (1 occurrences)
Last logged: 15:00:15
Error setting up integration light - received exception

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 64, in async_setup_component
    return await task  # type: ignore
  File "/usr/src/homeassistant/homeassistant/setup.py", line 174, in _async_setup_component
    processed_config = await conf_util.async_process_component_config(
  File "/usr/src/homeassistant/homeassistant/config.py", line 823, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 422, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 427, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/rpi_gpio_pwm/light.py".4, line 6, in <module>
    from pwmled.driver.pca9685 import Pca9685Driver
  File "/usr/local/lib/python3.8/site-packages/pwmled/driver/pca9685.py", line 2, in <module>
    import board
  File "/usr/local/lib/python3.8/site-packages/board.py", line 175, in <module>
    raise NotImplementedError("Board not supported {}".format(board_id))
NotImplementedError: Board not supported GENERIC_LINUX_PC

Additional information

Works fine on version 0.116.4

@probot-home-assistant
Copy link

rpi_gpio_pwm documentation
rpi_gpio_pwm source
(message by IssueLinks)

@pablomenino
Copy link
Author

I see that change pwmled to 1.5.3

This is for #41681

This change breaks Raspberry Pi 3

@springstan springstan mentioned this issue Oct 31, 2020
21 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0