3f2ca16ad74bddbd19d01e37e78a05948811a778,tests/components/hue/conftest.py,,setup_bridge_for_sensors,#Any#Any#Any#,109

Before Change


    await hass.config_entries.async_forward_entry_setup(config_entry, "binary_sensor")
    await hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
    // simulate a full setup by manually adding the bridge config entry
    hass.config_entries._entries.append(config_entry)

    // and make sure it completes before going further
    await hass.async_block_till_done()

After Change


    await hass.config_entries.async_forward_entry_setup(config_entry, "binary_sensor")
    await hass.config_entries.async_forward_entry_setup(config_entry, "sensor")
    // simulate a full setup by manually adding the bridge config entry
    config_entry.add_to_hass(hass)

    // and make sure it completes before going further
    await hass.async_block_till_done()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/hue/conftest.py
Class Name:
Method Name: setup_bridge_for_sensors


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/huisbaasje/test_sensor.py
Class Name:
Method Name: test_setup_entry


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/huisbaasje/test_init.py
Class Name:
Method Name: test_setup_entry


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/huisbaasje/test_init.py
Class Name:
Method Name: test_setup_entry_error


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/huisbaasje/test_sensor.py
Class Name:
Method Name: test_setup_entry_absent_measurement


Project Name: home-assistant/home-assistant
Commit Name: 3f2ca16ad74bddbd19d01e37e78a05948811a778
Time: 2021-03-21
Author: nick@koston.org
File Name: tests/components/huisbaasje/test_init.py
Class Name:
Method Name: test_unload_entry