MisterWil / skybellpy

A thin Python wrapper for the Skybell alarm API
MIT License
9 stars 7 forks source link

Update device.py #2

Closed austinmroczek closed 6 years ago

austinmroczek commented 6 years ago

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 https://github.com/home-assistant/home-assistant/issues/13133

coveralls commented 6 years ago

Coverage Status

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

dale3h commented 6 years ago

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
MisterWil commented 6 years ago

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