Fix PEEP257 issues
This commit is contained in:
parent
d784610c52
commit
b534244e40
42 changed files with 335 additions and 308 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue