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

Update device.py #2

Closed
wants to merge 1 commit into from
Closed

Update device.py #2

wants to merge 1 commit into from

Conversation

austinmroczek
Copy link
Contributor

Changes "import distutils" to "import distutils.util" to overcome error below in python 3.5

File "/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'

Discussed at home-assistant/core#13133

Changes "import distutils" to "import distutils.util" to overcome error below in python 3.5

 File "<mypath>/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'
@coveralls
Copy link

coveralls commented Mar 18, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling ffd6fa2 on austinmroczek:patch-1 into a0f63d9 on MisterWil:master.

@dale3h
Copy link

dale3h commented Apr 2, 2018

This failed the Travis CI build for Python 3.4.2. Would keeping line 2 as it was and adding this line help?

from distutils import utils

dale3h added a commit to dale3h/skybellpy that referenced this pull request Apr 2, 2018
@MisterWil
Copy link
Owner

Closing as I have now fixed this issue along with the test and tox failures. Thanks!

@MisterWil MisterWil closed this Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants