Skip to content
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

A new Skybell Task Exception error #13922

Closed
GaryOkie opened this issue Apr 15, 2018 · 4 comments · Fixed by #13974
Closed

A new Skybell Task Exception error #13922

GaryOkie opened this issue Apr 15, 2018 · 4 comments · Fixed by #13974

Comments

@GaryOkie
Copy link
Contributor

GaryOkie commented Apr 15, 2018

Home Assistant release with the issue:

"version": "0.67.0"

Last working Home Assistant release (if known):
66.1 (not certain as I may not have looked at the logs to see if the error was already presentthen)

Operating environment (Hass.io/Docker/Windows/etc.):

RPI3 with 32gb Sdcard, running Hass.io/Resin-OS image

Component/platform:

https://www.home-assistant.io/components/skybell/

Description of problem:
The Skybell doorbell is actually functioning fine via this add-on. The issue is with a Task exception error that occurs every 30 seconds that spams the log file. This has happened before and was fixed, but now it is occurring with a different piece of code that skybell.py references.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

skybell:
 

Traceback (if applicable):

2018-04-15 15:45:22 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 215, in async_update_ha_state
    state = self.state
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 379, in state
    return STATE_ON if self.is_on else STATE_OFF
  File "/usr/lib/python3.6/site-packages/homeassistant/components/switch/skybell.py", line 75, in is_on
    return getattr(self._device, self._switch_type)
  File "/usr/lib/python3.6/site-packages/skybellpy/device.py", line 206, in do_not_disturb
    return bool(distutils.util.strtobool(str(self._settings_json.get(
**AttributeError: module 'distutils' has no attribute 'util'**

Additional information:
There have been several other reports of this same "distutils has no attribute util" error with different components. They are being closed as answered, referencing this issue . If this slight change to how distutils is being called is all that is needed, please will someone update skybell.py with this fix for the next release? I'm happy to test it first as a custom component before release.

@MartinHjelmare
Copy link
Member

The error comes from the dependency skybellpy, so not within home assistant. That package needs to be fixed and then release a new version to pypi. Then someone needs to do a PR to home assistant to upgrade to the new version of the package.

@GaryOkie
Copy link
Contributor Author

GaryOkie commented Apr 16, 2018

someone needs to do a PR to home assistant to upgrade to the new version of the package.

My apologies for not submitting a "PR to home assistant" properly for a component dependency issue. I'm not clear on what needs to be done to submit this package fix request properly.

@MartinHjelmare
Copy link
Member

First try to open an issue in the skybellpy source repository.

@GaryOkie
Copy link
Contributor Author

GaryOkie commented Apr 16, 2018

Ok, thanks Martin.

I found skybellpy under @MisterWil personal repo.

It wasn't obvious how to open an issue, but finally found the link under the "+".

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