Cleaned up how hardware_controller.CheckThermostats is called.