2f159577074e98c472ca29f8c456b5f00cfd5f60,tests/components/netatmo/test_climate.py,,test_service_preset_modes_thermostat,#Any#Any#,230

Before Change


    await hass.async_block_till_done()

    // TFakeest webhook thermostat mode change to "Max"
    response = (
        b"{"user_id": "91763b24c43d3e344f424e8b", "user": {"id": "91763b24c43d3e344f424e8b","
        b""email":"john@doe.com"}, "home_id": "91763b24c43d3e344f424e8b", "room_id": "2746182631","
        b""home": {"id": "91763b24c43d3e344f424e8b", "name": "MYHOME", "country": "DE","
        b""rooms": [{"id": "2746182631", "name": "Livingroom", "type": "livingroom","
        b""therm_setpoint_mode": "max", "therm_setpoint_end_time": 1612749189}],"
        b""modules": [{"id": "12:34:56:00:01:ae", "name": "Livingroom", "type": "NATherm1"}]},"
        b""mode": "max", "event_type": "set_point", "push_type": "display_change"}"
    )
    await simulate_webhook(hass, webhook_id, response)

    assert hass.states.get(climate_entity_livingroom).state == "heat"
    assert hass.states.get(climate_entity_livingroom).attributes["temperature"] == 30

After Change


    await hass.async_block_till_done()

    // Test webhook thermostat mode change to "Max"
    response = {
        "room_id": "2746182631",
        "home": {
            "id": "91763b24c43d3e344f424e8b",
            "name": "MYHOME",
            "country": "DE",
            "rooms": [
                {
                    "id": "2746182631",
                    "name": "Livingroom",
                    "type": "livingroom",
                    "therm_setpoint_mode": "max",
                    "therm_setpoint_end_time": 1612749189,
                }
            ],
            "modules": [
                {"id": "12:34:56:00:01:ae", "name": "Livingroom", "type": "NATherm1"}
            ],
        },
        "mode": "max",
        "event_type": "set_point",
        "push_type": "display_change",
    }
    await simulate_webhook(hass, webhook_id, response)

    assert hass.states.get(climate_entity_livingroom).state == "heat"
    assert hass.states.get(climate_entity_livingroom).attributes["temperature"] == 30
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: home-assistant/home-assistant
Commit Name: 2f159577074e98c472ca29f8c456b5f00cfd5f60
Time: 2021-03-19
Author: cgtobi@users.noreply.github.com
File Name: tests/components/netatmo/test_climate.py
Class Name:
Method Name: test_service_preset_modes_thermostat


Project Name: home-assistant/home-assistant
Commit Name: 2f159577074e98c472ca29f8c456b5f00cfd5f60
Time: 2021-03-19
Author: cgtobi@users.noreply.github.com
File Name: tests/components/netatmo/test_climate.py
Class Name:
Method Name: test_valves_service_turn_on


Project Name: home-assistant/home-assistant
Commit Name: 2f159577074e98c472ca29f8c456b5f00cfd5f60
Time: 2021-03-19
Author: cgtobi@users.noreply.github.com
File Name: tests/components/netatmo/test_climate.py
Class Name:
Method Name: test_service_preset_mode_boost_valves


Project Name: home-assistant/home-assistant
Commit Name: 2f159577074e98c472ca29f8c456b5f00cfd5f60
Time: 2021-03-19
Author: cgtobi@users.noreply.github.com
File Name: tests/components/netatmo/test_climate.py
Class Name:
Method Name: test_service_preset_modes_thermostat