Narrow scope of various pylint inline disables (#15364)

* Narrow scope of various pylint inline disables

* Whitespace tweaks
This commit is contained in:
Ville Skyttä 2018-10-10 13:17:11 +03:00 committed by Paulus Schoutsen
parent 78c38749ab
commit 707b7c202d
30 changed files with 52 additions and 75 deletions

View file

@ -20,8 +20,7 @@ TAP_KEY_SCHEMA = vol.Schema({})
def setup(hass, config):
"""Listen for keyboard events."""
# pylint: disable=import-error
import pykeyboard
import pykeyboard # pylint: disable=import-error
keyboard = pykeyboard.PyKeyboard()
keyboard.special_key_assignment()