bc3af134f9d6774b58859da3dd38edebd5d621e4,homeassistant/components/demo.py,,setup,#Any#Any#,23
Before Change
hass.states.set("a.Demo_Mode", "Enabled")
// Setup sun
loader .get_component("sun" ).setup(hass, config)
// Setup demo platforms
for component in COMPONENTS_WITH_DEMO_PLATFORM:
After Change
hass.states.set("a.Demo_Mode", "Enabled")
// Setup sun
if not hass.config.latitude:
hass.config.latitude = "32.87336"
if not hass.config.longitude:
hass.config.longitude = "117.22743"
bootstrap.setup_component(hass, "sun")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: home-assistant/home-assistant
Commit Name: bc3af134f9d6774b58859da3dd38edebd5d621e4
Time: 2015-04-25
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/demo.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 27c92937f205539f9e5b4eb0f50ff0f7a20238ae
Time: 2017-06-29
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/switch/digital_ocean.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 27c92937f205539f9e5b4eb0f50ff0f7a20238ae
Time: 2017-06-29
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/binary_sensor/digital_ocean.py
Class Name:
Method Name: setup_platform