Clean up after global variable deletion (#33743)
* Clean up after global variable deletion * Remove self from method calls
This commit is contained in:
parent
f3b6575272
commit
0d2de919a6
6 changed files with 3 additions and 17 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue