Fix PEEP257 issues

This commit is contained in:
Fabian Affolter 2016-03-08 17:55:57 +01:00
parent d784610c52
commit b534244e40
42 changed files with 335 additions and 308 deletions

View file

@ -49,8 +49,10 @@ def setup(hass, config):
class ArduinoBoard(object):
"""Represents an Arduino board."""
"""Representation of an Arduino board."""
def __init__(self, port):
"""Initialize the board."""
from PyMata.pymata import PyMata
self._port = port
self._board = PyMata(self._port, verbose=False)
@ -104,6 +106,6 @@ class ArduinoBoard(object):
return self._board.get_firmata_version()
def disconnect(self):
"""Disconnects the board and closes the serial connection."""
"""Disconnect the board and close the serial connection."""
self._board.reset()
self._board.close()