Block dependencies that depend on enum34 (#8698)

* Block dependencies that depend on enum34

* Remove uninstalling enum34

* Update validation script

* Add constraints to tox.ini

* Upgrade yeelight to version that uses enum-compat

* Disable sensor.skybeacon

* Lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-08-04 23:06:10 -07:00
1 parent a0530d8b9c
commit e49b970665
8 files changed
+23 -14

No files matched your search

+6 -1
View File
@@ -16,7 +16,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_NAME, CONF_MAC, TEMP_CELSIUS, STATE_UNKNOWN, EVENT_HOMEASSISTANT_STOP)
REQUIREMENTS = ['pygatt==3.1.1']
# REQUIREMENTS = ['pygatt==3.1.1']
_LOGGER = logging.getLogger(__name__)
@@ -39,6 +39,10 @@ CONNECT_TIMEOUT = 30
# pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Set up the Skybeacon sensor."""
_LOGGER.warning("This platform has been disabled due to having a "
"requirement depending on enum34.")
return
# pylint: disable=unreachable
name = config.get(CONF_NAME)
mac = config.get(CONF_MAC)
_LOGGER.debug("Setting up...")
@@ -136,6 +140,7 @@ class Monitor(threading.Thread):
def run(self):
"""Thread that keeps connection alive."""
# pylint: disable=import-error
import pygatt
from pygatt.backends import Characteristic
from pygatt.exceptions import (