mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 13:30:43 +00:00
Clean up after global variable deletion (#33743)
* Clean up after global variable deletion * Remove self from method calls
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user