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

@ -33,11 +33,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Arduino platform."""
board = hass.data[DOMAIN]
# Verify that Arduino board is present
if board is None:
_LOGGER.error("A connection has not been made to the Arduino board")
return False
pins = config.get(CONF_PINS)
switches = []