async def METHOD_NAME(hass: HomeAssistant) -> None:
    sensor_config = {
        CONF_ENTITY_ID: "light.test",
        CONF_COMPOSITE: [
            {
                CONF_CONDITION: {
                    "condition": "and",
                    "conditions": [
                        {
                            "condition": "state",
                            "entity_id": "binary_sensor.test1",
                            "state": STATE_OFF,
                        },
                        {
                            "condition": "or",
                            "conditions": [
                                {
                                    "condition": "state",
                                    "entity_id": "binary_sensor.test2",
                                    "state": STATE_ON,
                                },
                                {
                                    "condition": "template",
                                    "value_template": "{{ is_state('binary_sensor.test3', 'on')  }}",
                                },
                            ],
                        },
                    ],
                },
                CONF_FIXED: {
                    CONF_POWER: 10,
                },
            },
        ],
    }
    await run_powercalc_setup(hass, sensor_config, {})
    hass.states.async_set("light.test", STATE_ON)
    hass.states.async_set("binary_sensor.test1", STATE_OFF)
    hass.states.async_set("binary_sensor.test2", STATE_ON)
    hass.states.async_set("binary_sensor.test3", STATE_OFF)
    await hass.async_block_till_done()
    assert hass.states.get("sensor.test_power").state == "10.00"
    hass.states.async_set("binary_sensor.test1", STATE_OFF)
    hass.states.async_set("binary_sensor.test2", STATE_OFF)
    hass.states.async_set("binary_sensor.test3", STATE_ON)
    await hass.async_block_till_done()
    assert hass.states.get("sensor.test_power").state == "10.00"
    hass.states.async_set("binary_sensor.test1", STATE_ON)
    hass.states.async_set("binary_sensor.test2", STATE_OFF)
    hass.states.async_set("binary_sensor.test3", STATE_ON)
    await hass.async_block_till_done()
    assert hass.states.get("sensor.test_power").state == STATE_UNAVAILABLE