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
except (TypeError, KeyError, NameError, ValueError) as ex:
_LOGGER.error("%s", ex)
persistent_notification.create(
hass, "Error: {}<br />"
"You will need to restart hass after fixing."
"".format(ex),
title=NOTIFICATION_TITLE,
notification_id=NOTIFICATION_ID)
return False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: EducationalTestingService/skll
Commit Name: 700a83deee93d13bd54849bfdac34fefda9c8f07
Time: 2017-10-30
Author: nmadnani@ets.org
File Name: skll/data/writers.py
Class Name: Writer
Method Name: write
Project Name: pantsbuild/pants
Commit Name: 16246c8a9d84c875208a5e370da87888e799dd96
Time: 2017-11-08
Author: stuhood@twitter.com
File Name: src/python/pants/pantsd/watchman.py
Class Name: Watchman
Method Name: __init__