diff --git a/homeassistant/components/sensor/envirophat.py b/homeassistant/components/sensor/envirophat.py index fa694d837f0a35f1abf63fb3d5aafc4d8cdb0768..f2db833954f5e53d6b1659189b2bf059c565dfdf 100644 --- a/homeassistant/components/sensor/envirophat.py +++ b/homeassistant/components/sensor/envirophat.py @@ -55,6 +55,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Sense HAT sensor platform.""" try: + # pylint: disable=import-error import envirophat except OSError: _LOGGER.error("No Enviro pHAT was found.") diff --git a/requirements_all.txt b/requirements_all.txt index 08e6f85ebb4a9e4196479e844644a75105a55361..7e57538711e3a2bb9f8ec47e2b37846384756452 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -172,7 +172,7 @@ eliqonline==1.0.13 enocean==0.31 # homeassistant.components.sensor.envirophat -envirophat==0.0.6 +# envirophat==0.0.6 # homeassistant.components.keyboard_remote # evdev==0.6.1 @@ -775,7 +775,7 @@ sleekxmpp==1.3.2 sleepyq==0.6 # homeassistant.components.sensor.envirophat -smbus-cffi==0.5.1 +# smbus-cffi==0.5.1 # homeassistant.components.media_player.snapcast snapcast==1.2.2 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 64091c5c2cc47e51a42e2b5c40453f8a9e8b8c99..59299f36453fa410dfa1fd8e58289995b1b3fde0 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -27,6 +27,8 @@ COMMENT_REQUIREMENTS = ( 'decora', 'face_recognition', 'blinkt', + 'smbus-cffi', + 'envirophat' ) TEST_REQUIREMENTS = (