From b7218e6a1d213f41493bfdf46119609b85d46643 Mon Sep 17 00:00:00 2001 From: Richard Mitchell Date: Tue, 22 Jan 2019 17:50:21 +0000 Subject: [PATCH] Should require the 'GATTOOL' setup extras which includes pexpect. (#20263) * Should require the 'GATTOOL' setup extras which includes pexpect. * Also fix skybeacon's requirement and requirements_all. --- homeassistant/components/device_tracker/bluetooth_le_tracker.py | 2 +- homeassistant/components/sensor/skybeacon.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/device_tracker/bluetooth_le_tracker.py b/homeassistant/components/device_tracker/bluetooth_le_tracker.py index a07fdfdcf81..825ef04ccc5 100644 --- a/homeassistant/components/device_tracker/bluetooth_le_tracker.py +++ b/homeassistant/components/device_tracker/bluetooth_le_tracker.py @@ -15,7 +15,7 @@ import homeassistant.util.dt as dt_util _LOGGER = logging.getLogger(__name__) -REQUIREMENTS = ['pygatt==3.2.0'] +REQUIREMENTS = ['pygatt[GATTTOOL]==3.2.0'] BLE_PREFIX = 'BLE_' MIN_SEEN_NEW = 5 diff --git a/homeassistant/components/sensor/skybeacon.py b/homeassistant/components/sensor/skybeacon.py index 441053a7e7e..6960999306d 100644 --- a/homeassistant/components/sensor/skybeacon.py +++ b/homeassistant/components/sensor/skybeacon.py @@ -16,7 +16,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity -REQUIREMENTS = ['pygatt==3.2.0'] +REQUIREMENTS = ['pygatt[GATTTOOL]==3.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 7a3cca7a7ee..20b773d0a59 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1003,7 +1003,7 @@ pyfttt==0.3 # homeassistant.components.device_tracker.bluetooth_le_tracker # homeassistant.components.sensor.skybeacon -pygatt==3.2.0 +pygatt[GATTTOOL]==3.2.0 # homeassistant.components.cover.gogogate2 pygogogate2==0.1.1