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
try:
if not myq.is_supported_brand():
raise ValueError("Unsupported type. See documentation")
if not myq.is_login_valid():
raise ValueError("Username or Password is incorrect")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: 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__
Project Name: EducationalTestingService/skll
Commit Name: 7245432a7971972580217d7f7e18d9e48bbd5d57
Time: 2017-10-30
Author: nmadnani@ets.org
File Name: skll/metrics.py
Class Name:
Method Name: kappa