Temperance, according to the CCC (1809)
Temperance is the moral virtue that moderates the attraction of pleasures and provides balance in the use of created goods. It ensures the will’s mastery over instincts and keeps desires within the limits of what is honorable.
If you are referring to the passage in the Book of Revelaion on lukewarmedness
14To the angel of the church in Laodicea, 10 write this: " 'The Amen, the faithful and true witness, the source of God’s creation, says this:
15 "I know your works; I know that you are neither cold nor hot. 11 I wish you were either cold or hot.
16 So, because you are lukewarm, neither hot nor cold, I will spit you out of my mouth.
17 For you say, ‘I am rich and affluent and have no need of anything,’ and yet do not realize that you are wretched, pitiable, poor, blind, and naked.
I think the two are closely related. If you do not cultivate the virtue of temperance, you will be ruled by your instincts and not attentive to your own blindness and wretchedness. I dont think God wants us to be temperate in our Faith or in our committment to others but temperate in our desires, especially for pleasurable things.