

@pytest.mark.functional
def test_list_lights(bridge_client):
    lights = bridge_client.get_lights()
    assert (len(lights) > 0)
    assert (lights[0].state.reachable in [True, False])
    assert (lights[0].state.on in [True, False])
    assert (bridge_client[0].name is not None)

dataset/ETHPy150Open sontek/bulby/tests/test_client.py test_list_lights/VarMisuse@73/88 `lights`->`bridge_client`