dd787ea5cede20fa51fc0a291fb7db51e9f37e22,homeassistant/components/sensor/forecast.py,,setup_platform,#Any#Any#Any#Any#,86
Before Change
"Please check your settings for Forecast.io.")
return False
units = config.get("units")
if units is None:
units = "auto"
data = ForeCastData(config.get(CONF_API_KEY, None),
hass.config.latitude,
hass.config.longitude,
units)
After Change
"Please check your settings for Forecast.io.")
return False
if "units" in config:
units = config["units"]
elif hass.config.temperature_unit == TEMP_CELCIUS:
units = "si"
else:
units = "us"
data = ForeCastData(config.get(CONF_API_KEY, None),
hass.config.latitude,
hass.config.longitude,
units)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: home-assistant/home-assistant
Commit Name: dd787ea5cede20fa51fc0a291fb7db51e9f37e22
Time: 2015-10-23
Author: nkgilley@gmail.com
File Name: homeassistant/components/sensor/forecast.py
Class Name:
Method Name: setup_platform
Project Name: asyml/texar
Commit Name: f53c38e5ea290616a3be50a99755272a12696070
Time: 2018-01-28
Author: zhiting.hu@petuum.com
File Name: texar/modules/decoders/rnn_decoders.py
Class Name: AttentionRNNDecoder
Method Name: __init__
Project Name: quiltdata/quilt
Commit Name: 7d9a7fead18653a43645c3d673499cf639337406
Time: 2020-06-03
Author: akarve@users.noreply.github.com
File Name: lambdas/es/indexer/document_queue.py
Class Name: DocumentQueue
Method Name: send_all