Clean up after global variable deletion (#33743)

* Clean up after global variable deletion

* Remove self from method calls
This commit is contained in:
springstan 2020-04-06 19:32:04 +02:00 committed by GitHub
parent f3b6575272
commit 0d2de919a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 17 deletions

View file

@ -26,7 +26,6 @@ def setup(hass, config):
port = config[DOMAIN][CONF_PORT]
board = None
try:
board = ArduinoBoard(port)
except (serial.serialutil.SerialException, FileNotFoundError):