From efa48848a5c27a175a29c282fc40f203bbce6609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= <mail@dahoiv.net> Date: Tue, 26 Feb 2019 23:50:48 +0100 Subject: [PATCH] Comment out bluepy libraries from requirements_all.txt (#20856) * Comment bluepy libraries from requirements_all.txt, fixes #20778 * Comment bluepy libraries from requirements_all.txt, fixes #20778 * Comment bluepy libraries from requirements_all.txt, fixes #20778 --- homeassistant/components/switch/switchbot.py | 1 + homeassistant/components/switch/switchmate.py | 1 + requirements_all.txt | 4 +-- script/gen_requirements_all.py | 36 ++++++++++--------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/homeassistant/components/switch/switchbot.py b/homeassistant/components/switch/switchbot.py index 9cd2927d832..a85357b525a 100644 --- a/homeassistant/components/switch/switchbot.py +++ b/homeassistant/components/switch/switchbot.py @@ -36,6 +36,7 @@ class SwitchBot(SwitchDevice): def __init__(self, mac, name) -> None: """Initialize the Switchbot.""" + # pylint: disable=import-error, no-member import switchbot self._state = False self._name = name diff --git a/homeassistant/components/switch/switchmate.py b/homeassistant/components/switch/switchmate.py index be80ef19169..5289ca6ec1b 100644 --- a/homeassistant/components/switch/switchmate.py +++ b/homeassistant/components/switch/switchmate.py @@ -42,6 +42,7 @@ class Switchmate(SwitchDevice): def __init__(self, mac, name, flip_on_off) -> None: """Initialize the Switchmate.""" + # pylint: disable=import-error, no-member, no-value-for-parameter import switchmate self._mac = mac self._name = name diff --git a/requirements_all.txt b/requirements_all.txt index f67d46b61bc..286b42ba214 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -57,7 +57,7 @@ PyQRCode==1.2.1 PyRMVtransport==0.1.3 # homeassistant.components.switch.switchbot -PySwitchbot==0.5 +# PySwitchbot==0.5 # homeassistant.components.sensor.transport_nsw PyTransportNSW==0.1.1 @@ -906,7 +906,7 @@ pyMetno==0.4.6 pyRFXtrx==0.23 # homeassistant.components.switch.switchmate -pySwitchmate==0.4.5 +# pySwitchmate==0.4.5 # homeassistant.components.tibber pyTibber==0.9.4 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index a42e5471f8c..09eb9f21d4a 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -8,31 +8,33 @@ import sys import fnmatch COMMENT_REQUIREMENTS = ( - 'RPi.GPIO', - 'raspihats', - 'rpi-rf', 'Adafruit-DHT', 'Adafruit_BBIO', - 'fritzconnection', - 'pybluez', + 'avion', 'beacontools', + 'blinkt', 'bluepy', - 'opencv-python', - 'python-lirc', - 'pyuserinput', - 'evdev', - 'pycups', - 'python-eq3bt', - 'avion', + 'bme680', + 'credstash', 'decora', - 'face_recognition', - 'blinkt', - 'smbus-cffi', 'envirophat', + 'evdev', + 'face_recognition', + 'fritzconnection', 'i2csense', - 'credstash', - 'bme680', + 'opencv-python', 'py_noaa', + 'pybluez', + 'pycups', + 'PySwitchbot', + 'pySwitchmate', + 'python-eq3bt', + 'python-lirc', + 'pyuserinput', + 'raspihats', + 'rpi-rf', + 'RPi.GPIO', + 'smbus-cffi', ) TEST_REQUIREMENTS = ( -- GitLab