What is the small cylinder on the firewall to the left of the battery?
That is a fuseholder for the optional clock or optional Hobbs meter. The yellow wire probably should be connected to it but you should have a certified mechanic inspect it.