8ee32a8fbd3b476abf4801e93e6157bd35f380ad,homeassistant/components/cover/myq.py,,setup_platform,#Any#Any#Any#Any#,29

Before Change


    password = config.get(CONF_PASSWORD)
    brand = config.get(CONF_TYPE)

    logger = logging.getLogger(__name__)

    myq = pymyq(username, password, brand)

    if not myq.is_supported_brand():

After Change


            raise ValueError("Username or Password is incorrect")

        add_devices(MyQDevice(myq, door) for door in myq.get_garage_doors())
        return True

    except (TypeError, KeyError, NameError, ValueError) as ex:
        _LOGGER.error("%s", ex)
        persistent_notification.create(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 8ee32a8fbd3b476abf4801e93e6157bd35f380ad
Time: 2017-05-30
Author: tchello.mello@gmail.com
File Name: homeassistant/components/cover/myq.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 3d972abdabb087b7384cc8ef73f4d109629abd54
Time: 2015-10-22
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/thermostat/heat_control.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 6a239bf18a7e010b09e7606fd09afc03a06f1691
Time: 2015-07-30
Author: rkabadi06@gmail.com
File Name: homeassistant/components/switch/edimax.py
Class Name:
Method Name: setup_platform