I am replacing an outlet in the middle of a run with doorbell transformer. The outlet is not required for code and the transformer is one that is rated to be installed in a 2 gang box. Yes, I will be using a divider to separate the line voltage and low voltage lines.
I will be replacing the current box with a 2 gang box, and finish fishing the low voltage wires to the new box.
My question is, how do I continue feeding the down feed outlets with power? The two wires in the photo not connected feed the next outlet.
Can I simply wire nut the two blacks from the wall and one of the blacks of the transformer together, then wire nut the two whites and the other black from the transformer together and finally wire nut the grounds together?
UPDATE
So future viewers don't get confused by one of the below posts, this is possible using the components I have bought, which are the following:
Edward Signaling 591 Transformer
The NuTone transformer unfortunately was not an option for me because it is made to mount behind a chime, which I do not have. There wasn't a clean way to run the low voltage wires to my location because they come out the front of the component.