The inputs to a Machmeter are pitot pressure and static pressure, no temperature inputs are required.
For a given Mach Number, TAS will increase with temperature, which is why the Supermarine Swift, being Mach limited, went to Libya to capture the world speed record. (Mike Lithgow, September 1953, 737.7 mph.)