99d2d72d13719730ccb65a00871ad80cb1ed10bb,tests/components/rflink/test_light.py,,test_signal_repetitions,#Any#Any#,192

Before Change


    )

    // test if signal repetition is performed according to configuration
    hass.async_create_task(
        hass.services.async_call(
            DOMAIN, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: f"{DOMAIN}.test"}
        )
    )

    // wait for commands and repetitions to finish
    await hass.async_block_till_done()

    assert protocol.send_command_ack.call_count == 2

    // test if default apply to configured devices
    hass.async_create_task(
        hass.services.async_call(
            DOMAIN, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: f"{DOMAIN}.test1"}
        )
    )

    // wait for commands and repetitions to finish
    await hass.async_block_till_done()

    assert protocol.send_command_ack.call_count == 5

    // test if device defaults apply to newly created devices
    event_callback({"id": "protocol_0_2", "command": "off"})

    // make sure entity is created before setting state
    await hass.async_block_till_done()

    hass.async_create_task(
        hass.services.async_call(
            DOMAIN, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: f"{DOMAIN}.protocol_0_2"}
        )
    )

    // wait for commands and repetitions to finish
    await hass.async_block_till_done()

After Change


    )

    // test if signal repetition is performed according to configuration
    await hass.services.async_call(
        DOMAIN, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: f"{DOMAIN}.test"}
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_light.py
Class Name:
Method Name: test_signal_repetitions


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_light.py
Class Name:
Method Name: test_type_toggle


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_light.py
Class Name:
Method Name: test_signal_repetitions


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_init.py
Class Name:
Method Name: test_send_command_event_propagation


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_switch.py
Class Name:
Method Name: test_default_setup


Project Name: home-assistant/home-assistant
Commit Name: 99d2d72d13719730ccb65a00871ad80cb1ed10bb
Time: 2021-03-20
Author: 31999997+javicalle@users.noreply.github.com
File Name: tests/components/rflink/test_light.py
Class Name:
Method Name: test_default_setup