a41d0aced7d729ad5923ee4be1ac25b954948d5c,homeassistant/components/arduino.py,,setup,#Any#Any#,31

Before Change


    try:
        BOARD = ArduinoBoard(config[DOMAIN][CONF_PORT])
    except (serial.serialutil.SerialException, FileNotFoundError):
        _LOGGER.exception("Your port is not accessible.")
        return False

    if BOARD.get_firmata()[1] <= 2:
        _LOGGER.error("The StandardFirmata sketch should be 2.2 or newer.")

After Change


            _LOGGER.error("The StandardFirmata sketch should be 2.2 or newer")
            return False
    except IndexError:
        _LOGGER.warning("The version of the StandardFirmata sketch was not"
                        "detected. This may lead to side effects")

    def stop_arduino(event):
        Stop the Arduino service.
        BOARD.disconnect()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: home-assistant/home-assistant
Commit Name: a41d0aced7d729ad5923ee4be1ac25b954948d5c
Time: 2017-04-19
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/arduino.py
Class Name:
Method Name: setup


Project Name: Microsoft/nni
Commit Name: 08af7771d1f1149f3da5a98bcdbf7e65abd409ba
Time: 2020-12-27
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/strategies/tpe_strategy.py
Class Name: TPEStrategy
Method Name: run


Project Name: evilsocket/pwnagotchi
Commit Name: 3ad426916f203c5b96afa08a1ba627cad38d2d33
Time: 2019-10-23
Author: evilsocket@gmail.com
File Name: pwnagotchi/mesh/utils.py
Class Name: AsyncAdvertiser
Method Name: _adv_poller