I'm trying to wire up a new ceiling fan that has built in lights where my old light fixture used to be but am a little confused with the wiring. In the electrical box (pic below) there are two black wires connected together and two white wires connected together. Then the old light fixture was connected between two red wires. Any idea why it was connected like that and how should I connect my new fan/light to it?
The room had two switches to control the old light, one with a dimmer on it. Is that perhaps why there is this weird wiring? Should I just wire the new fan/light up to the 2 red wires like the old light was?